instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a UITextView which I want to call some code after leaving it. How I can do this? Thanks.
stackexchange/codereview
I can call system("echo", "''"), and this won't be interpreted by a shell. I'll have expected result: '' on stdout. But I need to capture this output. %x is not an option, since I don't want to run shell, but execute command directly (and I don't want to do shell escaping).
stackexchange/codereview
I would like to be able to use array_count_values in the following way: $roundedans = 10 * round($groupdiff, 1); $diffarray[] = $roundedans; print_r(array_count_values($diffarray)); The first two lines are part of a while loop that inserts $roundedans into the array and array_count_values is called outside of the loo...
stackexchange/codereview
and thanks for reading. I'm making a DB for a puppy shop. I have a table for puppies and a table for INDIVIDUAL owners and Corporation Owners (Company owns puppy). A puppy can have one owner, owners can own more than one puppy. What's a good way to handle this situation? Do I use 2 FKs in the puppy table, one of which...
stackexchange/codereview
So I've installed django-registration through easy_install. I'm following a quick start guide and I'm trying to setup my urlConf, however it says module named backends.defauls.urls is not found. What might be the problem ? import registration (r'^accounts/', include('registration.backends.default.urls')),
stackexchange/codereview
I have a method in JNI (C++) and I want to be able to return a custom Object type (not a primitive or a String etc...) I've written something down but I keep getting java.lang.UnsatisfiedLinkError error. Here are the details: The method: static jobject Java_android_sdk_Core_ProcessFrame(JNIEnv *env, jobject myobj, jbyt...
stackexchange/codereview
I am writing a global hook DLL that needs to do some drawing using GDI+ on a window in response to an event. My problem is that the window that is being drawn keeps repainting itself, so what I draw gets erased before I want it to. Is there any way I can prevent the window from painting anything for as long as I need t...
stackexchange/codereview
I am currently developing RPC services for developers to use, but would like to make sure that I can distinguish between another app's debug key and their public key. Is there a way to check another app's key and tell whether it is a debug key and NOT a published app key? The purpose of this is to be able to tell when ...
stackexchange/codereview
Possible Duplicate: CPU Usage using WMI & C# How to retrieve CPU usage % in C# (.NET) using WMI? Yes, without any stupid PerformanceCounter.
stackexchange/codereview
I want to use dynamically registered BroadcastReceiver that has a reference to an Activity so it can modify its UI. I am using Context.registerReceiver() method but receiver's onReceive() method is never called. Here is the sample code showing the problem: package com.example; import android.app.Activity; import andro...
stackexchange/codereview
I have a file with multiple data structures in it like so: eventTimestamp: 2010-03-23T07:56:19.166 result: Allowed protocol: SMS payload: RCOMM_SMS eventTimestamp: 2010-03-23T07:56:19.167 result: Allowed protocol: SMS payload: RCOMM_SMS eventTimestamp: 2010-03-23T07:56:19.186 result: Allowed protocol: SMS payload: SM...
stackexchange/codereview
I've recently installed Devise on a rails application, and I am wondering if it is possible to get an instance of the currently logged in user in either one of the other models or controllers, and if so, how do I do that?
stackexchange/codereview
This is a sample question i found at ZEND php certificate practice test, the correct answer of this question is: " There is no difference between the current time in any time zone—the current time is an absolute point in time! " This answer is very odd and confusing.I don't understand why this answer is correct, actual...
stackexchange/codereview
I am Using Parameters with the ObjectDataSource Control (ASP.net, VB code behind) I am trying to use ObjectDataSource_RECORDID_GV1.SelectParameters.Add("City", "X") at run time Does this work with "like" so that anytime a parameter is empty all the records are returned such as (where City like '%') I have multiple co...
stackexchange/codereview
I have this filetypeenum: public enum FileType : int { jpeg = 0, png = 1, } why does it say == cant be applied to int type and FileType when i try to compare: int type = 1; if( type == FileType.jpeg) ??
stackexchange/codereview
I have made an about box that is meant to allow users to click the hyperlink email address which will take them to a Microsoft Outlook to be able to send an email to the email address, but I don't know how to link it to Outlook and allow the user to click the link to do this
stackexchange/codereview
On the Blackberry web browser I have the following image inputs to submit a form: <input type="image" name="display" value="List" src="layout_imgs/btn_list.png" alt="List" /> <input type="image" name="display" value="Map" src="layout_imgs/btn_map.png" alt="Map" /> It displays the image, clicking submits the form, but ...
stackexchange/codereview
I have a problem with a VB6 app causing a 50003 error whenever a form loads that uses RICHTEX32.OCX. The problem does not occur on the development machine. I tried copying and registering the development machine's copy of the OCX on the target machine, but this did not work. What other things should be done to try to ...
stackexchange/codereview
I'm using Python to write to a postgres database: sql_string = "INSERT INTO hundred (name,name_slug,status) VALUES (" sql_string += hundred + ", '" + hundred_slug + "', " + status + ");" cursor.execute(sql_string) But because some of my rows are identical, I get the following error: psycopg2.IntegrityError: duplicate ...
stackexchange/codereview
Learning client side code of an existing site, would like to understand some activity that takes place totally at the client side. Want to know what JS handlers are being called when I click on a specific element. Is there a way to see this information in some kind of debugger? I'm using Firefox with Firebug, or C...
stackexchange/codereview
I have a text box where user can reply through it i should post as same way user enters For Example if users uses enter between text i should post as same way test comment test comment it should be posted on same way...
stackexchange/codereview
CouchDB gives an opportunity to search values from startkey, for exact key-value pair etc But is there any way to search for substring in specified field? The problem is like this. Our news database consists of about 40,000 news documents. Say, they have title, content and url fields. We want to find news documents whi...
stackexchange/codereview
i have a solr repeater set up, that appears to be working correctly as a slave, and i thought i had the master part set right as well: <requestHandler name="/replication" class="solr.ReplicationHandler"> <lst name="master"> <str name="replicateAfter">commit</str> <str name="replicateAfter">startup</str> <str nam...
stackexchange/codereview
I have following code: my $coderef = ${MyModule::MyTool->new}; but when I try $coderef->(); i got error: Not a CODE reference How can I take reference to constructor (without calling it) and run referenced code late?
stackexchange/codereview
I am trying to run a Java program that executes Weka commands. The program i am running is at http://weka.wikispaces.com/Use+WEKA+in+your+Java+code, under Incremental Classifiers, "A working example is IncrementalClassifier.java." This is my code, and I changed the address of the arff: import weka.core.Instance; impo...
stackexchange/codereview
I'm trying to create a slug so I would like to strip out every strange character. The only thing the slug should contain is lowercase letters and underscores. Is there a way to check for strange characters and filter it out the string? everything that is not a character or underscore should be deleted this is what I ha...
stackexchange/codereview
Mysql table Employee uses employeeID as PK. It also has a field called EmployeeNumber. EmployeeNumber is either null or unique. (Some special employees don't have an employee#). When inserting an employee entry we need check if employee# is already if employee# is not null. Don't know how to do it using Hibernate. Tha...
stackexchange/codereview
I'm using EF 4, WCF Data Services and Silverlight 4. I have been getting data from my service without problems. I'm trying to save entities in a batch that are defined in EF with a complex type that has non-nullable columns. Ex: Customer has a Complex Type of Audit. Audit has an EntryDateTime column that is marked as ...
stackexchange/codereview
How would someone do that? It just blocks until the first connection attempt.
stackexchange/codereview
Let's say we have template <typename T> struct Foo {}; and struct Bar { template <typename T> operator Foo<T>() const { return Foo<T>(); } }; and template <typename T> Foo<T> Baz(T const&) { return Foo<T>(); } Then, true ? Bar() : Baz(some_expr_of_type_double) has type Foo<double> because Bar is convertible ...
stackexchange/codereview
I've got a .JPEG-picture, and I'd like to have it as a background picture. Is it possible to have, within this picture, separate areas to act as buttons without use the button control? Lets say my picture contains three letters, A, B and C. Is it possible to create some kind of area surrounding each letter, which allo...
stackexchange/codereview
/* * File: main.c * Author: matthewmpp * * Created on November 7, 2010, 2:16 PM */ #include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> /* prime numbers. version4 should tell whether a number is prime or not prime. by using other prime numbers. */ int input_func() { char line[100]...
stackexchange/codereview
Typing on the console gives me : php -v : 5.3.2 PHP 5.3.2 (cli) (built: Oct 13 2010 13:09:53) mysql.sock : /Applications/MAMP/tmp/mysql/mysql.sock It's the version installed with MAMP (which i've just uninstalled) If i do a phpinfo() on a browser PHP Version 5.3.3 /var/mysql/mysql.sock The problem I want to use th...
stackexchange/codereview
I have code similar to: public datagridview dg = new datagridview(); //populate grid. Form1 GUI = new Form1(); _dgv.Location = new System.Drawing.Point(0, 50); _dgv.Size = new System.Drawing.Size(630, 200); GUI.splitContainer1.Panel2.Controls.Add(_dgv); This I was hoping, would place the datagridview on the GUI WinF...
stackexchange/codereview
I have such structure: setup.py package __init__.py sub_package ___init__.py sub_package2 __init__.py If I install package via setup.py install, then it works as appreciated (by copying whole package to site-packages dir): site_packages package sub_package sub_package2 ...
stackexchange/codereview
When I create a prepared statement like this in java (using JDBC): pStmt = conn.prepareStatement(qry); everything works ok. However when I want a scrollable resultset and use this: pStmt = conn.prepareStatement(qry,ResultSet.TYPE_SCROLL_INSENSITIVE); I get a syntax error: org.postgresql.util.PSQLException: ERROR: syn...
stackexchange/codereview
Is it possible that readonly modifier influences on Garbage collector work? For value type, for reference type?
stackexchange/codereview
the following code returns the following runtime error. why? code: package { import flash.display.Sprite; import fl.transitions.Tween; import fl.transitions.easing.Regular; import fl.transitions.TweenEvent; public class Test extends Sprite { private var myNumber:Number; private var myTween:Tween; pub...
stackexchange/codereview
we are thinking to make a management tool for the win app. I was thinking about MMC but it needs to be web based one. Please can you advice me what to use to build nice mmc like web based management app. Maybe something like OWA 2010 or MS's managed services. Thanks
stackexchange/codereview
I am using ASP.NET 2.0 and I want my hyperlink should display with an image and the Text that i want. like this <Image>Hyperlink But if I'm setting the ImageUrl in asp:hyperlink control then it only displaying the image not the text. How can I do the specified thing.....
stackexchange/codereview
I am getting below value from group_concat() in a veriable in mysql abc#123#def#456#xyz#789#10111# Now I want to run query / stord procedure which can break this string in columns like abc | 123 |def | 456 | xyz | 789 | 10111 |
stackexchange/codereview
As per my knowledge api and web services are used to fetch data from other websites. So what's difference between them ? Any Help! EDIT Can somebody please explain it with proper example ? What is twitter and facebook api ? Can we say it's just a function or webservices to access their data.
stackexchange/codereview
Might sound like a newbie question (and it is since I am new to Ruby and IRB) but is there a way to save the commands you did in IRB to file? I am playing with WATIR and would love to save all my inputs to file instead of copying and pasting each. Thanks for the help!
stackexchange/codereview
I have a script that sends out a push notification to users based on whats in a PHP file. This is that file ...the parts that matter ... $doc = new DOMDocument(); $doc->load('RandomXML Url location here '); $arrFeeds = array(); foreach ($doc->getElementsByTagName('item') as $node) { $itemRSS = array ( ...
stackexchange/codereview
Mysql query and PHP code that I'm using to get users from the database that meet certain criteria is: $sql = mysql_query("SELECT a2.id, a2.name FROM members a2 JOIN room f ON f.myid = a2.id WHERE f.user = 1 AND a2.status ='7' UNION SELECT a2.id, a2.name FROM members a2 JOIN room f ON f.user = a2.id WHERE f.myid = 1 ...
stackexchange/codereview
I am using Python and try to send a dictionary (that contains dynamic data) via HTTP-Post request to the server. What is the most efficient way to implement it?
stackexchange/codereview
I want to do an Android application that use RDF store in-memory and query it. Do you know if you can use Sesame 2.3.2 onejar library in Android application without problem? Thanks!
stackexchange/codereview
How can check whether a instance is marked as serializable? Thanks
stackexchange/codereview
I'm writing a Server with OpenSSL API. I want to reuse the port that is already in use. I can do so in socket programming by calling setsockopt(sockfd, SOL_SOCKET, SO_REUSEADDR, &yes, sizeof(yes)); before I call bind(sockfd, ...); But how to reuse the port in OpenSSL programming? I use bio = BIO_new_ssl(ctx, 0); BIO...
stackexchange/codereview
I need some assistance with some javascript/jquery I have put in place. The function of this client side script is to set an event handler of all images within a particular selector on a page and if the image doesnt load (eg. not found), then its removed. My client side script is as follows, triggered in the document.r...
stackexchange/codereview
I wonder, which is the fastest way to send data from one process to other in PHP? The data is only a short string. Curretly I have a solution with AF_UNIX sockets developed, but benchmarks show that it takes 0.100 ms to pass the data from one process to other. I wonder, if shared memory can be any faster? However, I ha...
stackexchange/codereview
I am a beginner to iPhone development, I know the only very basic concepts of it. While I'm reading, I got a small question, what is the main difference between cocoa and cocoa touch? Can anyone one please help?
stackexchange/codereview
What if we have an if statement inside a for loop, would it stop the loop or the if condition... Example: for (int i = 0; i < array.length; i++) { if (condition) { statement; break; } }
stackexchange/codereview
Do you know any tools that may help to implement basic SQLite-based persistence in an Android app? Or even tools that may ease the process of building content providers? I've had quite a few projects, most of them saved persistent data into SQLite tables, some thru content providers. Mostly I needed basic CRUD operati...
stackexchange/codereview
I have an image in a that is larger than the . So I want to be able to scroll vertically and horizontally. But I can only seem to get it to scroll vertically. What am I missing here? <script type="text/javascript"> var myScroll; function loaded() { myScroll = new iScroll('transit_map', {vScrollbar:true});...
stackexchange/codereview
I am developing my first django website. I have written code in my view layer (the handlers that return an HttpResponse object to the view template (hope I am using the correct terminology). In any case, I want to put print statements in my views.py file, so that I can debug it. However, it looks like stdout has been r...
stackexchange/codereview
i m using one disabled textbox in my page .it is looking disabled in mozilla firefox but looking like a simple textbox in IE.what to do to give it a disabled look in IE also.
stackexchange/codereview
I have logging configured using logging.fileConfig(). I have a the root logger going to a handler that uses SysLogHandler('/dev/log', handlers.SysLogHandler.LOG_USER) This all works perfectly well, and I see my log entries in /var/log/user.log The question is how can I set the syslog ident string to something other tha...
stackexchange/codereview
then I run cmd /c net use h: /d from the powershell command line it all succeeds but when I run the same command in the powershell $profile script it asks for a manual confirmation. Anyone know how to prevent the confirmation please?
stackexchange/codereview
I am using eclipse to develop Android apps.I have not found a way to switch emulators when running/debugging my project.Is there an easy way to switch between the emulators I have set up? Thanks
stackexchange/codereview
I wrote a trigger in mysql that checks to see if a person is able to check out another library item. The checkout limit I have set is 3. I need to convert this to an Oracle trigger but am having lots of problems. Here is my MySQL code: DELIMITER // DROP TRIGGER IF EXISTS library.CheckBorrowsTable// CREATE TRIGGER Check...
stackexchange/codereview
Using LINQ to SQL classes, and the following code: clindt.clinDataContext ctx = new clindt.clinDataContext(); clindt.RoleMembership rm = new clindt.RoleMembership(); rm.Created_By ="bob"; rm.Modified_By ="bob"; rm.ProfileID = 2; rm.RoleID=1; rm.Created_Date = DateTime.Now; rm.Modified_Date = DateTime.Now; ctx.RoleMem...
stackexchange/codereview
I'm working on some experiments to try and increase the GPS accuracy on an iPhone by performing weighted averages on data collected over time. I've noticed a difference in the display of coordinates in the console, on the iPhone simulator, and on the iPhone itself. I'm running basic CoreLocation code to set up my Locat...
stackexchange/codereview
Is this possible?
stackexchange/codereview
I wish to know if it is possible to load the process at a user (pre)specified address? Thanks, Ashutosh
stackexchange/codereview
I have a servlet that returns a PDF. What i trying do is loading the PDF to Ext.Window. Below is the sample source Ext.getCmp('hisAmpPhyWin').load( { url:'servlet/Servlet/', params: {xhtml:xhtmlData}, text: 'Loading ...
stackexchange/codereview
I have fetchmail grab my email from a pop account and send it to procmail. I have 'keep' set in my fetchmailrc file because i also use the email for outlook and i cant have fetchmail taking all my emails. My problem is i want to download just todays emails or at lease since last time fetchmail ran. right now i am tryin...
stackexchange/codereview
I'm trying to duplicate/show the text Java Bean in another part (under the image) on the same page (visit http://www.miracleflooring.ca/cork.html to see how that works). Right now I have the info title & price show when you hover over the thumbnail, when mouse out, info hides. My client asked me to show the title & pri...
stackexchange/codereview
Why is the following validation function always failing. It even fails if I have both return case with true. $.validator.addMethod("validate_old_password", function(value, element){ $.ajax({ url: '/users/ajaxPage_password_validation/', type: 'POST', dataType: 'text', debug: true, ...
stackexchange/codereview
i have this android application that requires to load data from a remote server via the internet. this update-functionaliy obviously requires the device to not only be connected to some kind of network, but also to the internet. so: is want to schedule the update-service to some date and when it starts, it should deter...
stackexchange/codereview
We have a 3rd party control in our project made by SubSystems.com, called the TE Edit Control, also known as "Tern", which is kind of like a word-processor emulator. I've searched through SO for anyone else who's used this control, but it seems like it's not very popular. They do not have any support contact details;...
stackexchange/codereview
I am facing issue, when my cron is run. This is my error: PHP Fatal error: imap_headerinfo(): Address buffer overflow.
stackexchange/codereview
What is the difference between: new Thread(new ThreadStart(SomeFunc)) and: new Thread( delegate() { SomeFunc();} ) This code gives strange outputs on my computer: public class A { int Num; public A(int num) { Num = num; } public void DoObj(object obj) { Console.Write(Num); ...
stackexchange/codereview
I have a .net 4.0 web application hosted on IIS7 server. After reading this: http://learn.iis.net/page.aspx/496/iis-url-rewriting-and-aspnet-routing/ about serving static content from another server, so that cookies aren't sent with every request for a static file, i tried it out but without much success. This is the p...
stackexchange/codereview
I want to round the corner of my picture by using css in IE7,8 and Firefox. I have try to use -moz-border-radius for Firefox but it just round only border not the picture. Link to picture: http://i108.photobucket.com/albums/n33/ligthing_illuminate/problemwithcorner.png and the css which I use is following: .content p ...
stackexchange/codereview
How can I get fixed header, footer with scrollable content? Something like this page. I can look at the source to get the CSS, but I just want to know minimum CSS and HTML I need to get this working.
stackexchange/codereview
I'm modifying an FBML canvas app to use the new PHP SDK and authentication instead of the old REST api. Right now I'm attempting to use this snippet: $me = null; // Session based API call. if ($session) { try { $uid = $facebook->getUser(); $me = $facebook->api('/me'); } catch (FacebookApiException $e) { ...
stackexchange/codereview
I have the language {a^i b^j c^k | i,j,k>=0 & i>j & j>k} I began by assuming some m is picked for me, such that a string z = a^m b^(m-1) c^(m-2) Then the string is split up into (z =) uvwxy so that vx are not empty and #(vwx)<=m Then when I get to pick an "i" I get confused. Say I pick i=1 then I have: uv^1wx^1y a...
stackexchange/codereview
I'm experiencing a problem with Doctrine ODM. When I create an entity with a simple EmbedMany relationship to another document (i.e. a nickpage with many comments as embedded documents), and I try to clear the collection, the collection still exists with all elements: /** @Document */ class Nickpage { ... /** @E...
stackexchange/codereview
After seeing the discussion here: Python - generate the time difference I got curious. I also initially thought that a generator is faster than a list, but when it comes to sorted() I don't know. Is there any benefit to sending a generator expression to sorted() rather than a list? Does the generator expression end up ...
stackexchange/codereview
Hi all I recently updated my rails 2.3.5 application to rails 3.0 in rails 2.3.5 everything was ok, but in 3.0 i get an ActionController::RoutingError No route matches {:action=>"create", :controller=>"hours"} the line error is pointing to my form helper <%= form_for(:hour, :url =>{:action =>'create'}) do |f| %> ...
stackexchange/codereview
I've written a shell script (called Trash.sh) that when run will display all the files in my 'dustbin' directory and ask the user if they wish to delete each file one by one. The script is as follows: #if directory is empty, display message if test ! -f ~/dustbin/* then echo "Directory is empty" #if directory is not ...
stackexchange/codereview
I have an AdvancedDataGrid and need to export it as PDF for printing. Can you suppose me some useful links or ideas on that topic? Note : is another better sugestion that make this possible, working with Java? Tx.
stackexchange/codereview
I want my JSP page to include another page based on a value in the Request. So i set the following: request.setAttribute("chosenLang", "NL"); RequestDispatcher dispatcher = request.getRequestDispatcher(address); dispatcher.forward(request, response); And when i get to the 'address' page i try to do the fol...
stackexchange/codereview
I made my connection in C# with MS SQL 2005 now when I click a button I want the first row to be displayed and when clicked a second time, show the next record in the a text box. it would be something in side the loop but how?? private void button1_Click(object sender, EventArgs e) { SqlConnection conn = n...
stackexchange/codereview
I'm working on a large application that has uses many diverse libraries, but does not interop with Microsoft Office or Internet Explorer. By looking at the virtual memory with VMMap, however, I see that the following large files are being loaded into my application's virtual memory space. C:\Program Files\Common Fil...
stackexchange/codereview
I am trying to save Arabic language in mysql database but it doesnot save in Arabic format. It shows question marks instead of Arabic. How to make it store values in Arabic. I tried many queries seeing from internet but it doesnot changes. How to change it for Arabic. "ar_SA: Arabic - Saudi Arabia" Please suggest a...
stackexchange/codereview
When using RealVNC on Windows, I can sometimes cut and paste from VNC into Window's apps, and sometimes it just stops working. How can I get it reset so it works again? I've tried restarting VNC, but that doesn't do it.
stackexchange/codereview
I am trying to add functionality (new methods) to a built-in object (in my case, of type CanvasRenderingContext2D). The first approach was to add the methods to the prototype, it works, but I would prefer not to modify built-in objects. I was thinking to use Object.create (from ES5) to extend the object, something lik...
stackexchange/codereview
I've got a asp.net project that references Enterprise Library DLL's. I can build and deploy my project but the deployment build fails because it can't find the DLL's. I peeked at the properties for Microsoft.Practices.EnterpriseLibrary.Common, for example, and I notice that the file path is where it was installed in ...
stackexchange/codereview
Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface.
stackexchange/codereview
So this is a question I've been asking the pyroCMS guys because while rummaging through there source I noticed the news_categories table for the news module has 2 indexes on the "slug" column . Any ideas?
stackexchange/codereview
I would like to post a flash item to my wall from my iPhone app. The swf is displayed on my wall, but unfortunalty I didn't found how to pass it a custom variable, like songUrl. Do you have an idea ? Thanks
stackexchange/codereview
First time using the email component... I followed the book instruction and I set this function sendNewUserMail($id) { $User = $this->User->read(null,$id); $this->Email->to = array('MyEmai@gmail.com'); $this->Email->from = 'MyEmai@gmail.com'; $this->Email->subject = 'Welcome to our really cool thing';...
stackexchange/codereview
First i have no experience on parasoft .test or jtest experience. I have read the datasheet that the product could automatically generate unit test. but I am woundering how useful the auto generated unit test are. Does it really do not need any other effort by developer? any experience sharing are welcome. thanks a lo...
stackexchange/codereview
I'm trying to display a list of all the Input Methods that are currently installed on the phone. I'm getting a list of InputMethodInfo objects by doing this: InputMethodManager imeManager = (InputMethodManager)getApplicationContext().getSystemService(INPUT_METHOD_SERVICE); List<InputMethodInfo> InputMethods = imeManage...
stackexchange/codereview
I have an iPhone app which finds nearby coffee shops, then displays the details (address, opening hours, WiFi availability) in a ShopViewController. I've created several other targets in the project (for example supermarket, restaurant) and each one has slightly different information to display in the ShopViewControlle...
stackexchange/codereview
i am looking for the best way how to intercept a request with params from a user. store the params away and use them only if an intermediate action returns successfully. its kinda a multistep form. but the intermediate form data has nothing to do with the other forms model. so it should be like a dynamic request interc...
stackexchange/codereview
I have imported a WSDL and use it to send a SOAP request. It looks like this: <?xml version="1.0"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <SOAP-ENV:Body> <Calculate xml...
stackexchange/codereview
I have several Parallel.For operations in succession. I am currently examining each Parallel.For's return value ParallelLoopResult and sleeping for 20 milliseconds until the IsCompleted member is set to true. Dim plr as ParallelLoopResult plr = Parallel.For(...) while not plr.IsCompleted Thread.Sleep(20) end whil...
stackexchange/codereview