instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Hey all, I'm trying to get the MKMapView up and running however I can't seem to get past what seems to be a reference error. I've spent a few hours googling this as well as last night. Header: #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> @interface MapsViewController : UIViewController { MKMapView *mapView...
stackexchange/codereview
In my Silverlight app, after creating ADO.NET Entity Data Model and WCF RIA Services Domain Service Class, in a corresponding ProductService class I have a query operation that returns a collection of Product entities to the client, as follows: public IQueryable<Product> GetProducts() { return this.ObjectContext.Pr...
stackexchange/codereview
Setup as so: public interface IFoo { void Fizz(); } [Test] public void A() { var foo = new Mock<IFoo>(MockBehavior.Loose); foo.Object.Fizz(); foo.Verify(x => x.Fizz()); // stuff here foo.Verify(x => x.Fizz(), Times.Never()); // currently this fails } Basically I'd like to enter some code a...
stackexchange/codereview
My android application plays a radio through MMS Stream using AudioTrack class as described here The Problem is that after playing first chunk the device doesn't get any audio output. Here is the logcat info that may be useful DEBUG/WifiService(1904): ACTION_BATTERY_CHANGED pluggedType: 2 11-12 11:21:07.953: INFO/Hel...
stackexchange/codereview
I am using jQuery 1.4.3 to make an ajax call to an ASP.NET MVC 2 rest service. Since this rest service is on a different domain, I have to use jsonp. The issue I am running into is after upgrading from jQuery 1.4.2 to 1.4.3, I now get javascript errors when jQuery tries to remove the tag that was injected for the js...
stackexchange/codereview
I have a model Image that has a propery named "uploaded_by_user" that is a db.ReferenceProperty for the User model. When I query for the image in the "uploaded by user" property I already have the user value as a model.. I don't want that, I just want the key. I don't want that extra query to load the user. Is that pos...
stackexchange/codereview
Is there an utility or code sample that can decrypt with the old key, and then encrypt passwords with a new key for ASP.Net membership users?
stackexchange/codereview
I'm building a system where I'll need to grab the contents of a web page with PHP and then parse it to extract certain tables etc. Is there an easy way to do this with jQuery or would the best way be to write PHP function to extract the data?
stackexchange/codereview
I have a program in which I need to apply a 2-dimensional texture (simple image) to a surface generated using the marching-cubes algorithm. I have access to the geometry and can add texture coordinates with relative ease, but the best way to generate the coordinates is eluding me. Each point in the volume represents a...
stackexchange/codereview
Here's the scenario: Window creates a tab bar controller and adds multiple tab bar item view controllers with a UINavigationController as the top view. viewWillAppear gets called on the first tab bar view. The user taps a control on the first tab view that pushes a view controller on the nav stack. viewWillDisappear ...
stackexchange/codereview
I recently ran into a piece of code very much like this one: var nHours = parseInt(txtHours); if( isNaN(nHours)) // Do something else // Do something else with the value The developer who wrote this code was under the impression that nHours would either be an integer that exactly matched txtHours or NaN. There are s...
stackexchange/codereview
As per the linux design on x86 and ppc, the 4g virtual address space is divided into 3:1. User virtual address's are till 3g. Now if user app does an ioctl passing a pointer to buffer, the kernel module, can directly do a memcpy, I tried and it worked. => Why do we then need a copy_to/copy_from user. Note: If the page ...
stackexchange/codereview
I've built a page which uses some jQuery, and Raphael (vectors and images on canvas), to allow a user to customise a picture by choosing a few colors. The whole canvas can be recreated on the client side by being initialized with an array of simple arguments like: initCanvas({ 'wall' : 'green', 'ceiling' : 'b...
stackexchange/codereview
i need a jquery slideshow plugin with displaying next and previuos item as a thumbnail. is there anyone or i have to write it myself?
stackexchange/codereview
I add cache to my application, I have a page which contains several User Control, my problem is I just want to cache the data returned from Controller, but not want to cache all the page content. Since one of my user control is login control, if I cache all the result, then it will behave incorrectly. my problem is : ...
stackexchange/codereview
I have 2 dropdown list boxes in my asp page where I need to select category and sub-category. Sub-category dropdown list will be populated based on the category dropdown list box selection. The problem is the sub-category list box is not loading accordingly when i select an item in category list box. So I am going to p...
stackexchange/codereview
So I ran a regular generate scaffold and used a stock form to handle uploads. All uploads work nicely and the image is attached perfectly. The issue I get is when I go to 'Edit' and try to change the image, this is the error I get: Routing Error No route matches "/uploads" Here is what my controller looks like. The n...
stackexchange/codereview
How do I append to large files efficiently. I have a process that has to continually append to a file and as the file size grows the performance seems to slow down as well. Is there anyway to specify a large buffer size with the append
stackexchange/codereview
I have an Oracle error No more data to read from socket. It's a connection using ColdFusion datasource jdbc:oracle:thin how to fix it? Thank you
stackexchange/codereview
I have an aspect which works fine when I run it from a unit test or through a stand alone application. However when I run it as a part of web application and host it on Tomcat the Aspects are not applied. My aspect looks like public class MyAspect { @Around("within(com.service..*)") public Object doLogging(Pro...
stackexchange/codereview
We've recently setup out own webservice using SOAP and it all works like a charm. Because the service is only used from within our own applications, I usually don't allow for a WSDL to be generated. Today i started some tests with SoapUI and needed a WSDL of our own service. So I enabled the Default action of the TWSDL...
stackexchange/codereview
It seems like most people use MySQL together with PHP. I've used H2 and Postgres with Java, but I can't really say why, I didn't evaluate any before I started. Does some work best with a specific language? Are there more stable ones that are better at large capacities?
stackexchange/codereview
There is a certain query that is being called from an ASP .NET page. I studied the execution plan of that query in Management Studio and 87% is for a sort. I badly need the sorting or else the data displayed would be meaningless. Is there anyway that I can request SQL Server to cache a sorted results set so it will re...
stackexchange/codereview
I have to display a form and the users must decide on selecting just one or no option. A Checkbox will work but it's not mutually exclusive. A RadioBox will work but I will have to add an extra value with None. What is the best practice for this ? Update Just to be clear an admin must decide if a user can edit or view ...
stackexchange/codereview
I have a script like this: SET ECHO OFF SET FEEDBACK OFF SET VERIFY OFF SET HEADING OFF SET TERMOUT OFF SET TRIMOUT ON SET TRIMSPOOL ON SET WRAP OFF SET LINESIZE 32000 SET LONG 32000 SET LONGCHUNKSIZE 32000 SET SERVEROUT ON SPOOL C:\Export.txt SELECT XMLELEMENT("element1",xmlelement("element2",xmlattributes(.....))) ...
stackexchange/codereview
what do I need to change in my abstract base so that the implementations don't have to implement BOTH methods when only one is needed in any given scenario? My example is: internal abstract class BaseBar<T> where T : BaseThing { protected internal abstract T DataFromXmlElements(IEnumerable<XmlNode> nodes); pro...
stackexchange/codereview
How get web config location element? ConfigurationManager.GetSection("appSettings") returns Okay ConfigurationManager.GetSection("location") return null I.E. ... <location path="FOLDER/Page2.aspx"> ... </location>
stackexchange/codereview
I'm working with a large solution (90+ projects). When I build it, if the build succeeds, I get about 50 lines in the Output window that say things like UTA050: Test XYZ.ABC.GEF has the Ignore attribute. Ignoring test. Fine. But the obnoxious thing is that it takes a very long time for all this output to show up, like...
stackexchange/codereview
Where can I download the Eclipse 3.5.2 Delta Pack? It's no longer available via the download pages on eclipse.org :-(
stackexchange/codereview
I have found two functions to count md5 and sha 1 in Objective C. Here's the code: -(void)md5HexDigest:(NSString*)input { NSData *data = [input dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]; uint8_t digest[CC_MD5_DIGEST_LENGTH]; CC_MD5(data.bytes, data.length, digest); NSMutableString* ret = [NSM...
stackexchange/codereview
I understand that in the V model testing there is a corresponding test for every level of specification/design. Then what is the double V model?
stackexchange/codereview
when i load images from database dynamically jquery was not supported to gallery images the following error displayed Error: jQuery(".be-infired").jcarousel is not a function and its my script given below $(document).ready(function(){ jQuery('.be-infired').jcarousel( function(){ scroll: 1 }); }); and cakeph...
stackexchange/codereview
I want to create an iPhone application. But the build should work for iPhone device 3.0 to 4.0. Please give me some idea for that. Because, I have created an iPhone application. I have installed that application in a device (version 3.1.3), it is working fine. I have tried in iPhone version 4.0 with the same build. But...
stackexchange/codereview
I've just written this: ldb.Update(emp.Code,emp.number, "text", String.Empty, "EMP", emp.scheme, emp.status, emp.tod, emp.timestamp, emp.Code, emp.oldfrmd) Its far to wide! How can I shorten this method call? The problem is this isn't my method, so I can't edit it.
stackexchange/codereview
I want to display images from multi derctories. I have this main folder ( backgrounds ) and inside this DIR I have 45 folders each folder have between 10-20 images. I want to display all the images from the directories. regards Al3in
stackexchange/codereview
I have a aspxgridview that shows a number of buttons for each row. What I want to be able to do is enable some of these buttons on a per row basis, based on some background logic. When the HtmlRowPrepared event is trapped I tru and use e.Row.FindControl("butApprove") but it returns null. If I keep searching down thr...
stackexchange/codereview
I am trying to play a simple video in chrome 7.0.517.14 the code is as below: <!DOCTYPE HTML> <html> <head> <title>alykhantejani.com</title> </head> <body> <video width="320" height="240" controls="controls"> <source src="movie.mp4" type="video/mp4"> </video> </body> </html> The page is stored in the same folder ...
stackexchange/codereview
I am looking for an outline/inspector tool to simply list functions/objects in a jQuery script so I can jump around the script as needed. I am using Eclipse with the Aptana plugin. If the file is a regular javascript file, the outline view lets me view functions in the file and I can quickly get to a specific functio...
stackexchange/codereview
I have a grouped table view which consists of custom cells. The problem is that when i scroll to the last cell and footer, its not holding to the view. I mean when i drag the table upwards i can see the last row and footer but when i release the finger the tab bar is hiding the last cell and the footer and the table v...
stackexchange/codereview
I need to increment the month of a datetime value next_month = datetime.datetime(mydate.year, mydate.month+1, 1) when the month is 12, it becomes 13 and raises error "month must be in 1..12". (I expected the year would increment) I wanted to use timedelta, but it doesn't take month argument. There is relativedelta pyt...
stackexchange/codereview
I have Main and Detail forms. The Main form has ListView1. I would like to select new added ListViewItem in ListView1 when user click Save button in Detail form. I have problem only when I'm adding new item. When I modify and save existing item according item is selected after save command. I will appreciate for sample...
stackexchange/codereview
I had written one windows service in C#.NET which fires on every miniutes... I want to fire a mail to my manager in every month on say xyz date.... this task shld repeted on every month on same date... So can any one tell me how to do this..? I mean to say the block of code which i will write shld get executed on same ...
stackexchange/codereview
Using JDO / DataNucleus / NeoDatis datastore I added @Unique to a field of a persistable object, however I am allowed to create multiple objects which violate the unique constraint. The docs for DataNucleus/NeoDatis suggest that Unique fields are supported. @PersistenceCapable public class User { @Persistent @Unique ...
stackexchange/codereview
Is it possible to have a embedded database in a small web application? What I need is there should not be any need to install any database in the server machine. By just adding a jar in the folder the database should work. I am using Java EE, and Netbeans as my IDE. If its possible, what are the open source databases t...
stackexchange/codereview
Let's say I have data as below: aaa m7 aaa m9 aaa m7 aaa m7 aaa m7 ccc m9 ccc m7 ccc m7 bbb m7 bbb m9 bbb m7 ddd m7 How could I sort it into: aaa m9 bbb m9 ccc m9 ddd m7 using unix commands (sort, uniq, etc.)? What I need is sort all data and then filter out all data with same field#1.
stackexchange/codereview
I've got a table named FOO with the column ("Porc" |- 3 7 15 50 15 7 3) and I'm copying the numbers to another table, shown below. I'm doing it the hard way, cell for cell, but I was wondering if there is a way to copy that range of the remote table (A2 to the bottom) in a single command. | Pr (%) | ROE de A | ROE de...
stackexchange/codereview
Essentially, I would like to create a new process and define the environment for it from the parent process. I would like to use CreateProcessW and pass a (modified) UNICODE environment into lpEnvironment, but I'm not sure what the content should look like compared to an ANSII environment block. The only documentation ...
stackexchange/codereview
How can I remove all text after a character, in this case a colon (":"), in bash? Can I remove the colon, too? I have no idea how to.
stackexchange/codereview
We have a scenario where active records are stored in one table and over time old records are archived. The table structures for the two tables - active and archive are exactly the same. E.g DomainObject_Current : ID INT : Autoincrement Key Value INT TimeStamp DomainObject_Archive ID INT Value INT Timestamp ...
stackexchange/codereview
Using NetBeans IDE and Glassfish Server. For some reason I can't get a DataSource injected (have tried a million variations). private DataSource iserver; @Resource(name="jdbc/iserver", type=DataSource.class) public void setIServer(DataSource dataSource) { this.iserver = dataSource; } (I already tried adding @Resou...
stackexchange/codereview
I have an accordion and I want to put a textbox and a button in the accordionitem so that when the button is clicked, I can read the value entered in the textbox. How can this be done?
stackexchange/codereview
I'm compiling a software on Mac OS X, and I don't want to expose the internals of it. But it would be great if I could use crashlogs sent by the users to inspect the crash reasons. I fear that the debug info generation as dSYM file exposes the internals of my app (the dSYM files not being distributed, anyway), so my qu...
stackexchange/codereview
I have a dropdown which i want to fill through jquery. Problem that i am facing is that i want to call a class function directly from jquery. eg My class_function PHP class contains get_locations function. how can i call this get_locations function using jquery .post method without introducing a third page?
stackexchange/codereview
lets say i have this query SELECT tags FROM myTABLE; and the result of this comes like CARS BIKES BIKES 3D PHOTOSHOP CARS 3D ANIMALS NATURE PHOTOSHOP what i want to do is not reapeat any word in Result... only fetch the distinctive entries once... like CARS BIKES 3D PHOTOSHOP ANIMALS NATURE could this ...
stackexchange/codereview
I'm attempting to find the maximum font size that will fit in a given rect for a given string. The goal of the algorithm is to fill as much of the rect as possible with as large of a font as possible. My approach -- which is modified from one I found online -- does a fair job, but it often doesn't fill the entire rect....
stackexchange/codereview
As the topic says - What is the biggest problem that would occur if we dropped usage of pointers and resorted to only references in C++? Let's say we have a new that returns a reference and a delete which takes one.
stackexchange/codereview
I am trying to move a file using java, from one folder to another folder, however the folders are on different hard drives, which fails to work with the renameTo method. I only need this feature to work on linux... -jason
stackexchange/codereview
I love the API Demo examples from the Android webpage and used the AnimateDrawable.java to get started with a WaterfallView with several straight falling images which works great. Now I like the images to stop when they are clicked. I found out that Drawables can't handle events so I changed AnimateDrawable and ProxyDr...
stackexchange/codereview
I am trying to figure out how to do something that (should) be fairly simple. What I want is to get an event to fire anytime a ListBox control is scrolled. The ListBox is dynamically created, so I need a way to do it from the code behind (however XAML solutions are appreciated as well, as it gives me something to star...
stackexchange/codereview
I have a (game) server that I am writing in python (3.1), and have a few questions on that. The client program uses the socket module to connect to the server. Multiple people may be connecting at any time, and I need a way to handle that. Would the best way be to employ the multi/sub processing module, and start a new...
stackexchange/codereview
I'm putting a scoreboard on my client's website. It's similar to what's at the top of espn.com. In order to populate it, I have an xml file, that's set up like this: <?xml version="1.0" encoding="utf-8"?> <scores> <game> <sport>Boys Soccer</sport> <awayName>Spartans</awayName><awayScore>2</awayScore> <homeName>Kings...
stackexchange/codereview
I am trying to install PETSc on my Ubuntu laptop. The first step of the installation is to invoke the following commands in the top level directory of the PETSc directory in the terminal. export PETSC_DIR=$PWD ./config/configure.py --with-cc=gcc --with-fc=gfortran --download-f-blas-lapack=1 --download-mpich=1 make all...
stackexchange/codereview
Okay, so let me start by saying: PLEASE do not tell me how to create a fluid website or that I should read some statistic from Google on just how much pixel width by height is visible by website visitors as tracked by Google analytics... As a web designer, certain assumptions about your audience must be made in order t...
stackexchange/codereview
I'm attempting to hash the values 10, 100, 32, 45, 58, 126, 3, 29, 200, 400, 0 I need a function that will map them to an array that has a size of 13 without causing any collisions. I've spent several hours thinking this over and googling and can't figure this out. I haven't come close to a viable solution. How would ...
stackexchange/codereview
I've just updated my MVC2 project to run MVC3 (RC). Everything is working as expected except for one problem. I'm running DotNetOpenAuth, but when I go to authenticate, my page renders the string DotNetOpenAuth.Messaging.OutgoingWebResponseActionResult instead of authenticating (which worked in the MVC2 app) I found...
stackexchange/codereview
I am new to i-phone development. as per my project requirement i want a tabbed window browsing effect like the one you see in window-XP display properties or in IE internet options. i have found that tab bar controller is there in iphone . but that tab bar comes at the bottom.. i want it on the top. looking for your su...
stackexchange/codereview
I have a project where I need to construct a fair amount of configuration data before I can execute a process. During the configuration stage, it's very convenient to have the data as mutable. However, once configuration has been completed, I'd like to pass an immutable view of that data to the functional process, as...
stackexchange/codereview
I have following btrace script. I would like to record entry and exit of functions in a specific class. .. package com.sun.btrace.samples; import com.sun.btrace.BTraceUtils; import com.sun.btrace.Profiler; import com.sun.btrace.annotations.*; @BTrace class Profiling { @Property Profiler swingProfiler = BTraceUtils.Pr...
stackexchange/codereview
I'm writing a firmware for a Atmel XMEGA microcontroller in c and I think I filled up the 4 KB of SRAM. As far as I know I only do have static/global data and local stack variables (I don't use malloc within my code). I use a local variable to buffer some pixel data. If I increase the buffer to 51 bytes my display is s...
stackexchange/codereview
I'm developing a site for the iPhone. Later for android. Now I have some links in that site. To see that it is a link I'd like to style the div-element like a button so that one can see that it is a link and clickable. Is it better to use div- or button-elements here? Are there any information about which way is a bet...
stackexchange/codereview
Specification pattern is a common pattern used in DDD that encapsulate business logic to respond to one question. public interface ISpecification<T> { bool IsSatisfiedBy(T aSource); } public class CustomerHaveDiscountSpec : ISpecification<Customer> { bool IsSatisfiedBy(Customer aCustomer) { /* ... */ ...
stackexchange/codereview
I have some html that is output by PHP's urlencode - basically it's a simple bunch of anchors that look like this: <a href="#i+have+some+spaces">link1</a> I'm using jquery to take a look at all these references when they're clicked, however, I can't seem to decode it using any of the browser's internal functions. Do ...
stackexchange/codereview
all, I get this error when building with maven (mvn clean install). Can't find the description of the problem. maybe anybody encountered it, what does it mean and how to fix it? How to force the updates? Failure to find org.springframework:spring:jar:3.0.0.RELEASE in http://download.java.net/maven/2/ was cached in the ...
stackexchange/codereview
Is it possible to let @ModelAttribute method be invoked only for a specific handler method and supply the command object for only one handler method invocation ? Not for each handler method within a particular controller ? I'm using spring web-portlet MVC, but it should be the same... Because this for loop is called fo...
stackexchange/codereview
I'm new to rails (rails 3) and I am learning in practice. I want to create a User-profile relation. I have created a User model with devise, and that is working well. Then I created a Profile model. The idea is to register an user and the show information about his profile and if the user wants, complete the profile. B...
stackexchange/codereview
I run a blog where the blog title is either an external link or an internal link to a longer piece similar to what you’ve seen on similar blogs. For some reason, ExpressionEngine (1.6.x) does nothing to sanitize such things as ampersands in the URLs provided. I use Markdown in the body text, which seems to do a great j...
stackexchange/codereview
Let's say we get the following data from a CSV file: account_number balance customer name 100 500.00 GERN BLANSTON 101 800.00 GERN BLANSTON 102 200.00 OPRAH WINFREY This represents two accounts belonging to Gern Blanston and one belonging to Oprah Winfrey. Now let's say we have a cu...
stackexchange/codereview
Im quite new to android development and in fact also Java. I have created an activity where I have several "rounded corner" transparable gradient-"buttons" that is made up of an absolutelayout, and two texfields. Now I want these "buttons" to be added to my screen based on some values in a database. So the UI is dynam...
stackexchange/codereview
I have 2 user controls one named Filters and one named FilterItem Filter looks like this: <UserControl xmlns:my="clr-namespace:AttorneyDashboard.Views.UserControls" x:Class="AttorneyDashboard.Views.UserControls.Filters" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.m...
stackexchange/codereview
I'm using DD_belatedPNG to fix transparent PNGs in IE6; at a certain point I noticed that all fixed PNGs started disappearing a second after the document loaded. Something along these lines: page loads, 1 second passes, the transparency becomes viewable and the PNGs almost immediately disappear. Any clue on what the ca...
stackexchange/codereview
My situation is as follows: I've got a JList which triggers a search (using a ListSelectionListener) whenever a selection is made in the list. I'm trying to reset the selection on the list, using list.clearSelection(). The problem with this is that using clearSelection() triggers the listener, which calls the search: n...
stackexchange/codereview
So all is mentionned in the question : Can i run real player files with Flex ? thanks.
stackexchange/codereview
I get the following parser error message. How can I fix this problem? The server tag is not well formed. Code: <a href="#" class="mySprite id<%# ((int)DataBinder.Eval(Container,"ItemIndex")) % 6 + 1%>">
stackexchange/codereview
Let me first say, my In App Purchase works. I have been struggling with the Activity Indicator / Threading for more than a week now. I am having real problems getting my spinner (UIActivityIndicatorView) to play nice within my InAppPurchase.m I am using the same threading code in many other places and it works fine. I...
stackexchange/codereview
Consider the following situation: Class** array = new Class*[8]; array[1] = new Class(1,2); Is just doing "delete[ ] array" sufficient or should I precede the former with "delete array[1]". I am not completely comfortable with memory management.
stackexchange/codereview
What is the best Scala way to replace from some list every occurrence of element x by some other element y? This is what I am doing right now: list map { case `x` => y case a => a } Is there more concise way available? Thanks.
stackexchange/codereview
I'm working with some ocean tide data that's structured like this: $data = array('date' => array('time' => array('predicted','observed'))); Here's a sample of real data that I'm using: http://pastebin.com/raw.php?i=bRc2rmpG And this is my attempt at finding the high/low values: http://pastebin.com/8PS1frc0 Current iss...
stackexchange/codereview
When trying to install CakePHP, I get the following error message about changing the values of the salt and cipher seed. How can I change these values? Notice (1024): Please change the value of 'Security.salt' in app/config/core.php to a salt value specific to your application [CORE\cake\libs\debugger.php, line 684]...
stackexchange/codereview
I am planing on having a few many-to-many table relations. What is the best way to "delete" from the tables? Should I mark a column as deleted? Talbes CREATE TABLE `comments`( id INT NOT NULL, comment TEXT, status enum('active','inactive','deleted'), //Should this be added? PRIMARY KEY(id) ); CREATE TABLE `files`( id...
stackexchange/codereview
I would like to read in a SVG file, determine its width and height in order to scale it. At the moment, my code looks as follows: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css" media="all">@import "style/s...
stackexchange/codereview
According to this answer the poster expects a std::bitset of size 100k bits to be faster than a std::vector<bool> when querying individual bits. How can this be possible? How could they even differ significantly in their implementation, if std::bitset apparently allows for arbitrary sizes just like std::vector?
stackexchange/codereview
I have thoroughly followed the steps described in http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx in order to register a custom URL protocol I'll have to use in order to integrate an application I'm writing in C# with Pocket Internet Explorer. The idea is to click on a link similar to xpto://something/?wit...
stackexchange/codereview
I have created a very simple window service using visual studio 2010 and .NُET 4.0. This service has no functionality added from the default windows service project, other than an installer has been added. If I run "installutil.exe appName.exe" on my dev box or other windows 2008 R2 machines in our domain the windows s...
stackexchange/codereview
I have a regex in Java: Pattern pattern = Pattern.compile(<string>text</string><string>.+</string>); Matcher matcher = pattern.matcher(ganzeDatei); while (matcher.find()) { String string = matcher.group(); ... This works fine, but the output is something like <string>text</string><string>Name</string> But I j...
stackexchange/codereview
I'm using Oracle SQL Developer 3.0. Trying to figure out how to export a query result to a text file (preferably CSV). Right clicking on the query results window doesn't give me any export options.
stackexchange/codereview
hi i want to build a simple program which does Parallel.ForEach(m_CustomerArr, customer => { customer.OrderSomthing(); }); when customer order something he query database, when his item run out of he contact to the supplier public bool takeOrder(Order o) { lock (s_Q...
stackexchange/codereview
This question has been modified If I had to really pick the kind of testing I would like to learn (I have no idea which way this translates to Python) is found here http://butunclebob.com/ArticleS.UncleBob.TheThreeRulesOfTdd. I don't know if this is agile, extreme or if it's just called TDD. Is this unit testing, doc t...
stackexchange/codereview
Hi I'm working on a site. I need help making a text appear in a div where it saids any image clicked their title and size. in DOM scripting. Can anyone help? No innerhtml. Thanks
stackexchange/codereview
I have an issue when I try to use datagrid.items.add() to add items from one datagrid to another. Basically I have two data grids acting in a master slave relationship. The First DataGrid1 is used to display automatically generated columns and rows. The second datagrid, DataGrid2 will display the DataGrid1.SelectedItem...
stackexchange/codereview
My application is mixture of simple PHP webpages and zend application. Sometime I need to redirect to simple PHP webpage from zend application's Action. For example: I want to redirect from example.com/module/controller/action to example.com/simplephp.php. I tried header("Location: example.com/simplephp.php"); but it i...
stackexchange/codereview