instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm making a java application for a toy store and using the MS-Access database. I'm using the operator "LIKE" to search for products in database using the user's keyword. E.g. in Access: SELECT * FROM tblToy WHERE toyName LIKE '*puppy*' OR toyBrand LIKE '*puppy*' this gives me the desired result in access. But in java...
stackexchange/codereview
When I click each sample on the samples section, in chapter 19. from numeric type unification to Dynamic Objects- dynamic XAttributes, my database tree view keep populating my local database server with a "." Why is that?
stackexchange/codereview
I have a problem with Hibernate generating an SQL that do not work on SQLServer (works on PostgreSQL without any problems). I have tried to set the hibernate dialect for SQLServer but the same SQL is still generated and still do not work. The HQL query looks like this: select count(t) from ValidationLog t The generat...
stackexchange/codereview
InvalidateRow and InvalidateColum are not working for TStringGrid. The methods will not invalidate the entire Row/Col. InvalidateGrid always works (so this could be a dirty work-arround until the cause of the bug is found). In some circumstances (it seems to be random) InvalidateRow and InvalidateColum seem to work als...
stackexchange/codereview
I'm building an e-commerce search and I am using Lucene.Net as my search engine. I am having trouble filtering my queries, though. This is one of the documents I have indexed, with the following fields and values: field: "name", value: "Mochila MVP" field: "manufacturer", value: "Nike Accessories" Now, when I run the...
stackexchange/codereview
I am having serious performance issues with BlockUI and ASP.NET AJAX on my aspx page. I'm trying simple element blocking but it is fading in with a a lag/delay. Do html errors on page affect blockUI? I'm blocking a large div spanning well above the browser vertically. The unblock works great for the same page (without ...
stackexchange/codereview
In the Audio Session Cookbook there is a section on "Checking if Other Audio is Playing During App Launch". I'm using MonoTouch (but feel free to give an Objective-C answer, the API is the same), so the code from that document looks something like this: bool otherAudioPlaying = AudioSession.OtherAudioIsPlaying; if(othe...
stackexchange/codereview
Hello I am completely confused between json and ajax. When would what be used. I work with PHP on the server side. I regularly use ajax to receive data asynchronously, without invoking a page load. I use php's json functions to pass data to javascript. But I just started learning jQuery, and I am completely confused wh...
stackexchange/codereview
I'm developing a side-scrolling android game and I've come across one hiccup. The game is rendering graphics on the Canvas object. The game features about 6 scrolling layers, the main ground layer, a collision layer, a foreground layer, and two background layers, which all scroll with variable speed for camera depth. N...
stackexchange/codereview
We have a lot of objects for which we like to implement a simple toString to output attributes of the object. Some of these attributes may be complex objects themselves. Is there any standard, or simply just a best practice for a style? I'm thinking something like: [SimpleClassName] { prop1:value, prop2:value } In w...
stackexchange/codereview
I'm writing a new C# application which will make heavy use of a configuration file. My requirements are: Human readable Name value pairs Hierarchical [Updatable by application] Um, to translate: I want to define an object and a set of configuration parameters associated with that object. The configuration paramete...
stackexchange/codereview
I just created a Web App project from a repository through Eclipse's SVN support. What I would be doing is have an ANT build going and then finally deploy through Tomcat. I am using Eclipse IDE for Java EE developers on an Ubuntu system. There are a number of jar files needed to support my project - like Struts, H...
stackexchange/codereview
I have searched far and wide for a way to compile my .hta file (and resources) to a .exe file. There are plenty of applications that claim to be able to do this - but they have not worked for this application - which is a mixture of javascript and VB. Simply, (and naively,) I don't want people looking at / screwing wit...
stackexchange/codereview
is it possible to change the uitableviewcellaccessory image in tableviewcell??
stackexchange/codereview
I've hosted an WCF service in SharePoint 2010 (basicHttpBinding) using this tutorial. The assembly is deployed to the GAC and contains the WCF service and a timerjob. Both call the same method. The timerjob works successful. But when I call the method of the WCF service, I get an exception, that it can't write a proper...
stackexchange/codereview
i have a simple little form <form id="loginform"> <input id="myinput" type="text" /> <input name="submit" value="go" type="submit" /></form> in a very not secure way i want it to go to different urls depending on the input value. here is my simple little jquery script that i am sure could be written more succinctly. (...
stackexchange/codereview
When you send a PDT transaction ID back to paypal, you get back a list of transaction data. It has SUCCESS on the first line, and then a list of key=value pairs. One pair per line. For example: SUCCESS business=paypal@example.com charset=windows-1252 custom= first_name=Alice handling_amount=0.00 invoice=NN0005 item_nam...
stackexchange/codereview
I'm hijacking the click event and doing a $.get() on the href. Problem is, that the function that I'm defining doesn't get executed. Firebug Console, shows that a GET request was actually made: GET http://localhost:8000/products/a-26-tavella-grip-168168-1a-3/ 200 OK 12ms So, not sure what to make of this, the page...
stackexchange/codereview
In openGL, I have a 3D model I'm performing a ray-triangle intersection on, using the code explained in the paper "Fast, Minimum Storage Ray/Triangle Intersection" ( http://jgt.akpeters.com/papers/MollerTrumbore97/ ). My cursor position is unprojected into world space using the following code: bool SCamera::unproject(...
stackexchange/codereview
Anybody know any good tut's for iPhone development? I have written a game in AS3 and have excellent knowledge of PHP/OOP etc but I cannot get my head around the iPhone SDK or the objective C syntax and structure.
stackexchange/codereview
My XAMPP is not reading my PHP. Probably, there's a problem with my Apache configuration. My PHP book suggested that I open the httpd configuration file and add these lines: LoadModule php5_module c:/php/php5apache2_2.dll PHPIniDir "c:/php/" AddType application/x-httpd-php .php Which I did, but when I went back to...
stackexchange/codereview
what I am trying to do is to display an item on text on the screen and then following the user input chage that text to the next/previous item. I have created a string arry with all the items in (xml) I have then called the array in the Java code and set up the OnclickListners. My problem is that I don't know what is w...
stackexchange/codereview
I am facing an issue here as shown in code is mentioned below Inside the function I have something like this AJAXRequest("getActivityEntries?orgEntry="+orgentryid+"&activity_entry="+activity_entry+"&target=AJAX"); if orgentryid is null here, After building the HTML page, the JAVAScript looks like… AJAXRequest("getActi...
stackexchange/codereview
I have a method with two overloads, as follows: bool Evaluate(Func<bool> condition) { // Some logic return condition.Invoke(); } bool Evaluate<T>(Func<T, bool> condition, T value) { // Same logic as the first method overload return condition.Invoke(value); } Since both method overloads contain large...
stackexchange/codereview
class KeyDemoFrame extends JFrame implements KeyListener { String line1; KeyDemoFrame() { setTitle("hello"); setSize(200,200); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); addKeyListener(this); } public void keyTyped(KeyEvent e) { ...
stackexchange/codereview
Basics: I have a text box (txtDepositAmount) that people can enter a deposit amount into and a drop down (ddlSelectedTerm) that sets the terms. Through these two values I calculate the APY (lblCurrentApy). Rules: If only one of the values is selected I still want to do an update on the current APY label and clear ...
stackexchange/codereview
Hei! I need to optimize some matrix multiplication code in c, and I'm doing it using SSE vector instructions. I also found that there exists SSE4.1 that already has instruction for dot-product, dpps. The problem is that on machine this software is supposed to work there is an old version of gcc installed (4.1.2), which...
stackexchange/codereview
I was trying to compile the following (example) code via C++ Builder 2010: http://swarmapps.wordpress.com/2009/11/24/a-simplification-wrapper-for-the-crypto-library/ ( http://pastebin.com/f6bd13d59 / example.cpp ) ( http://pastebin.com/f2fc53f83 / BasicCryptoPPWrap.h ) There were no compiler errors but the linking fail...
stackexchange/codereview
I want to read a column from a table of data base and for every row that I have read, read some rows from another table. the elements that I read from both tables are Strings, my code is: query1 = 'select col1 from MyDb.table1 order by col1'; [x1]= mysql(query1); for i=1:size(x1) my=char(x1(i,1)); ...
stackexchange/codereview
I want something like this in my routes.rb. This isn't at all correct, but something like this: match '/:scope/authenticate' => '%{:scope}_authentication#create' So going to /users/authenticate would route to the create method in the users_authenticate controller. What is the best way to do this in Rails 3?
stackexchange/codereview
I'm experimenting with the WebKit .Net component in an application. Usually with the standard WebBrowser component I can select an element by id and then raise an event on it using the RaiseEvent method or, for clicks, simply use the Click method. However, I can't seem to find similar functionality in the WebKit browse...
stackexchange/codereview
I'm trying to use log4j in JSP web application over Jboss 4.2 My problem is that I can't set the logger to use the properties file. Here are the steps I done: copy log4j.properties to WEB-INF folder My code: <%@ page import="org.apache.log4j.Logger" %> <%@ page import="org.apache.log4j.PropertyConfigurator" %> <% org...
stackexchange/codereview
Is it a bad practice to use Integrated Security=True on a production server in ASP.NET?
stackexchange/codereview
I have a mapview with a few pins on it. The pins are loading longitude and latitude from a plist. I've also added a detailview where you get more info about the pin that gets tapped. However my problem is that when I tap on a pin (discloseButton ofc) and get pushed to the detailview it's always the last items data that...
stackexchange/codereview
If I have an db.Model object such as: class Foo(db.Model): title = db.StringProperty() bars = db.ListProperty(db.Key) and I wanted to query the datastore for all of the Foo entities and sort that set by the Foo objects that have the most bars, how would I write the GQL? I was hoping for something as simple as:...
stackexchange/codereview
I'm going to implement recursive folder comparison on python. What do you think would best algorithm for this? Get two lists of the files for the folders Sort both lists Compare using filecmp module for a file Repeat for every folder recursively In result I need to get only the list of the files that are different (c...
stackexchange/codereview
I've been wading through all the new EF and WCF stuff in .NET 4 for a major project in its early stages, and I think my brain's now officially turned to sludge. It's the first large-scale development work I've done in .NET since the 1.1 days. As usual everything needs to be done yesterday, so I'm playing catch-up. This...
stackexchange/codereview
I want to clone a GIT repo and NOT end up with a .git directory. In other words I just want the files. Is there a way to do this? git clone --no-checkout did the exact opposite of what I want (gave me just the .git directory). I am trying to do that for a remote repo, not a local one, meaning this is not a duplicate o...
stackexchange/codereview
how do i determine the mouse location on an image using javascript when mouse is clicked
stackexchange/codereview
I want to push and pull things off of a stack in an atomic way using ruby and mongoDB. The push I can do atomically via the following code example: collection.update({"_id" => document["_id"]}, {"$push" => {field_name => value}}) Example code for pop: value = collection.update({"_id" => document["_id"]}, {"$pop" => {f...
stackexchange/codereview
I've just downloaded Visual Paradigm for UML and it looks quite ok. Does anyone have any experience with it? Or maybe someone has his own favourite IDE which is worth using and wouldn't mind sharing this knowledge? Do not want to use IDE which is written in JAVA or C# for patriotic reasons.
stackexchange/codereview
I want to do that in JML: //@ requires (\forall int i : array[i] < array[i+1]) void calculatesDistances(int[] array){ .. } I couldn't make it work, saw a lot of examples in JML specs, but couldn't find a way how to do it. So, how can i make it?
stackexchange/codereview
Changes were made to our .vcproj to fix an issue on the build machine (changeset 1700). Later, a developer merged his changes (changes 1710 through 1715) into the trunk, but the mercurial auto-merge overwrote the changes from 1700. I assume this happened because he chose the wrong branch as the "parent" of the merge (s...
stackexchange/codereview
I've picked up some SQL similar to the following: IF EXISTS(SELECT name FROM tempdb..sysobjects WHERE name Like N'#tmp%' and id=object_id('tempdb..#tmp')) DROP TABLE #tmp into #tmp select * from permTable I need to add more data to #tmp before continuing processing: insert into #tmp select * from permTable2 But thi...
stackexchange/codereview
http://pastebin.com/YyDzQ4Bk this is a plugin for right click context menu, anyone know why it doesn't work in IE? Not only that, it's breaking many of my other jQuery things, such as fancy box and some jQuery hover functions.
stackexchange/codereview
Is there a way to validate my ASPX page code? I have plenty of missing div tags, missing td tags etc on my page. How can I catch all my html errors ? The Visual Studio aspx editor won't help that much. Is there any tool to facilitate this ? How would you guys go about these tasks ?
stackexchange/codereview
I have a base page called let's say Login.aspx with Login.aspx.cs code behind. Now...I would like to derive page from that page for several specyfic customers. Basically nothing changes in layout (aspx file), the only think is difference in handling Page_Load event. However when I access my derived login page LoginClie...
stackexchange/codereview
For whatever reason, SOMETHING is preventing an input text box's focus event from firing when clicking into the box, ONLY in IE 6, in our jQuery site. (Tabbing to the box actually does fire focus). Any suggestions on how to debug this? I have no idea what's happening. I've removed all the events from the input box exc...
stackexchange/codereview
I want to remove all of the cross-sell product links from the store - we have around 22,000 links that was the result of an auto cross sell extension that I have since removed. I imagine it has something to do with removing records from the table catalog_product_link? Or is there a way to do this programmatically?
stackexchange/codereview
how can i return an array like : $array = array( 1 => array('id' => '12','name' => 'Great man'), 2 => array('id' => '14','name' => 'Lamborgini'), 3 => array('id' => '29','name' => 'Leon'), ); please attention to first keys
stackexchange/codereview
is it possible to use mathematical operators in .htaccess file? for example i want to redirect a page with id=100 to a page with id=30 ?
stackexchange/codereview
I tried to repetitive press sound effect, each MP3 is 8 secs long and as fast as I press the button, it suddenly hang for a few seconds before I could continue execute the sound effect again. I use the code in http://livedocs.adobe.com/flex/3/html/help.html?content=createeffects_2.html After Example: Passing parameters...
stackexchange/codereview
i got some code for twitter updates- function twitit() { global $wp_query; $thePostName = $wp_query->post->post_name; echo '<div id="twitit"><a href="http://twitter.com/home?status=Currently reading '.$thePostName.' : '.get_permalink($post->ID).'" title="Click to send this page to Twitter!" target="_blank">Share on Twi...
stackexchange/codereview
I am getting this error when I try to run a update query on a SQLite database. This only happens on XP (on Vista works fine). The database is created without any issue, insert also works fine. I also checked and I have permissions and disk space available (as sqlite.org says these are possible causes).
stackexchange/codereview
I have this code $(this).parent().children('.vote_count').children('span.number') but I am wondering if there is a better way to go up one level, down two from a selector
stackexchange/codereview
When using: - $.getJSON("admin.php?format=json", { module: "data", action: "allBusinessUnitsByClientName", clientname : $('#client').val() }, function(json) { $.each(json.items, function(i,item){ alert(i); }); }); I get the following error in the Firebug console:- a is undefined a))();else c.error("In...
stackexchange/codereview
i working on a project which compare between load time of websites on different server around the world. in my project i need to buy a spot for a website in several servers but i don't know in which country the server is actually located. i found an add-on in firefox called "flagfox" (i'm not related to the program, t...
stackexchange/codereview
I have a UITableView with the usual table view delegates. The problem is that the table is built from core data .. so when my refresh method runs it refills the core data entities. I think this means that the data for the table is unstable, and hence it crashes on a line like this (in 'cellForRowAtIndexPath'): cell.tex...
stackexchange/codereview
I have to do some object to object mapping between domain classes used in a C# project and classes which are sent to flash clients. My first choice was Automapper. But I've had some issues with it (nested properties, no parameterless constructor defined). It turns out that it is not so easy to map a really complex type...
stackexchange/codereview
I've been testing PHP socket listening, and ran into the aforementioned problem. My test listener works otherwise fine, but if a client disconnects without telling the server, the script goes into and infinite loop until a new client connects. The problem seems to be on line $ready = socket_select($read, $write = NULL,...
stackexchange/codereview
I'm quite a newbie in EF, so I'm sorry if my question has been answered before.. I just can't figure out the syntax.. I have two entities, Category & Product, where one category has many products. I want to get all categories, with only their latest product (it has a date property named timestamp) I have no idea how to...
stackexchange/codereview
I want to create a popup on a click on link on my first page in Scala and my popup window contains one drop dwwn menu. I am using "lift framework "and I want both Scala and HTML code for that to create that popup menu.
stackexchange/codereview
Update 2 I discovered that if I change the "Base SDK" to "iOS Simulator 3.2" (iPad ???) it does not give me this error when doing Build & Analyze... But this is supposed to be an iPhone App. I am running XCode 3.2.4... am I missing something when I create the Project? I am choosing iPhone as the target device, not sure...
stackexchange/codereview
Im trying to re-create a this satchmo environment using a buildout script: [buildout] parts = django satchmo eggs = pycrypto PIL pyyaml trml2pdf sorl-thumbnail django-registration django-caching-app-plugins django-threaded-multihost django-signals-ahoy django-keyedcache django-livesettings django satchmo Sphinx docut...
stackexchange/codereview
HI, all I have a problem of null pointer Exception in servlet . I have a form a.jsp with check box if I do not select this check box and submit form then null pointer exception is occur in a.servlet. How I Can handle this Exception code a.jsp <table border='0' width='50%' cellspacing='0' cellpadding='0' ><form name=fo...
stackexchange/codereview
I have a FTP with some file which I want give it to the users for Downloading. But the FTP is password protected and I want to authenticate the FTP using PHP and make the links available in a php page so as that when the User clicks on any of the FTP links in that page, the download should start. Please help.
stackexchange/codereview
Just wondering if anyone has ever managed to find a way to have a datagridview image button column in a template field which display different images on different rows depending on some data element in the row. Our application needs to display a series of fees charged against an account column which will be either les...
stackexchange/codereview
Does anyone know if there is anything new in LINQ to SQL in the 4.0 Framework? I know they said LINQ to SQL was not going to be supported anymore in favor of pushing the Entity Framework, but maybe they added new features or fixed some bugs.
stackexchange/codereview
i know you can configure a project to be run at any time of the day, but is there the possibility to configure it to run only some specific days at any specific time? Thanks in advance --Victor
stackexchange/codereview
I want to call an ajax function to do some stuff... function RemoveTest(subfolder) { var datastring="name="+subfolder; alert(datastring); $.ajax({ type: "POST", url: "mystuff.php", data: datastring, success: function(msg){ alert( "Data Saved: " + msg ); // some ...
stackexchange/codereview
how to get the cpu usage of a thread in .net in c#
stackexchange/codereview
I don't know whether the term sort is most appropriate but anyway I have a large datasets which consists of columns userA, userB, date, interactionDuration. In other words the dataset contains rows which describe which users were interacting, how long the interaction lasted and the date of interaction. The goal is to d...
stackexchange/codereview
I am trying to read xml nodes values from lastfm web service that look like this: <lfm status="ok"> <results for="stinkfist" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"> <opensearch:Query role="request" searchTerms="stinkfist" startPage="1" /> <opensearch:totalResults>188</opensearch:totalResults> <open...
stackexchange/codereview
I have a sprite animation, a small cannon rendered using a 3D app. I have exactly 360 frames for a 360 degree turn. Each image has a 100x100 pixel size. So basically what I am trying todo is when I click anywhere in the page, the barrel of the cannon needs to rotate to point at the mouse cursor, sound simple maybe but ...
stackexchange/codereview
I am trying to teach myself some rudimentary Twisted programming thanks to this tutorial and many others. I have come to this current example which I Can't figure out why it's doing what it is doing. Short summary: I have instantiated three reactors that count down from 5 to 1 with different delays in their counting. ...
stackexchange/codereview
I want to use CKEditor for a comment field in my ASP.NET MVC 2 application, but can't get it to work. Here is what I have: The textarea where I try to integrate the editor: <div class="editor-field"> <%: Html.TextAreaFor(model => model.Comment, new { @class = "textarea", @id="Editor1" })%> <%: Html....
stackexchange/codereview
I'm interested to know if a UNION is better than running multiple queries. If so, are there times that multiple queries would be faster or preferred for other reasons?
stackexchange/codereview
I remember seeing a blog post about how to fix the Visual Studio 2010 bug where the Find dialog grows in width every time you bring it up, but I didn't get around to following it, and now I don't remember where I saw it. Anybody have a link to this?
stackexchange/codereview
I recently launched some web pages using a jquery slideshow plugin which, of course, was working just fine on my hard drive. But now that the pages are on the server, I keep seeing an error code that the 'mygallery' file is undefined. I fixed this by pointing to the public folder location where the files are located bu...
stackexchange/codereview
I have a list (assume an issues list) and there is a workflow associated with it. The workflow can adjust the status column of the item to "Closed". Once an item's status is closed, I want to make it read-only so that noone can edit the item or create another workflow instance for that item. What's the best way to achi...
stackexchange/codereview
I am having problems allowing a specific Role access to a specific page in a subdirectory. My ASP.NET application has a directory, ~/Forms/Administration that has limited access. There is a specific file, ~/Forms/Administration/Default.aspx that I want to give 1 additional user role access to, as well as the Admin rol...
stackexchange/codereview
I have this application which is saving tweet messages from twitters public time line. For that I have created a "Tweet" entity in my model & has generated a managed object class from XCode. I have declared Tweet ivar in my controller class & have synthesized it but when I try to put some value in it like tweet.text = ...
stackexchange/codereview
Currently, I'm working with a website. This website is written using PHP with PostgreSQL as the back-end. For the server I use Apache (XAMPP). My website has a membership feature consist of free membership and premium membership. Premium membership valid for 1 year after the registration, after that the user membership...
stackexchange/codereview
template <class T> struct ABC { typedef typename T* pT; }; int main(){} The above piece of code gives errors expected nested-name-specifier before 'T' expected ';' before '*' token What is wrong with the code sample?
stackexchange/codereview
I have a dropdown list that is populated on a content page like this <%: Html.DropDownListFor(x => x.SelectedName, Model.NameList) %> <input name="btnGo" type="submit" value="GO" /> When the user selects the name and click the GO button, I have an HTTP Action that gives me the name [HttpPost] public ActionResult Sel...
stackexchange/codereview
I am using SQL Server 2005... I want to monitor table1 with a trigger for an update. On the occurrence of this update, I will check another table (table2), using the data from table2 I place an item in the queue to execute at a variable date in the future. Could be 10 seconds from now, or 2 hours, this date is determ...
stackexchange/codereview
I am trying to download a .csv file into an array and then parse each column line-by-line with Text::CSV. I have the following: my @file = get("http://www.someCSV.com/file.csv") or warn $!; my $CSV = Text::CSV->new(); $CSV->sep_char (','); for ( @file ) { $CSV->parse($_) or warn $!; my @columns = $CSV->fie...
stackexchange/codereview
Continuation question from: VS2010 loads slowly. Can I profile extensions' respective startup time? After looking at the log file, it turns out there are a few packages that I'm not using much (I think): (load time) (package): (2s) (Microsoft.VisualStudio.TeamArchitect.DesignersCommon.DesignersCommonPackage, Microsoft...
stackexchange/codereview
We changed our firewall rules (REGEX) to the following: Name Type Context Severity Pattern CS:select_into signature http-url critical .*\[select\]\s+.*\[into\].* CS:select_from signature http-url critical .*\[select\]\s+.*\[from\].* CS:insert_into signature http-url critical .*\[insert\]\s+.*\[into\]...
stackexchange/codereview
I have deployed a standard war file as an osgi bundle into equinox using bnd to create a war bundle. Whilst it deploys ok and I can run the app, I cannot see any images or css files. I have deployed catalina-start as an osgi bundle and am using spring-web-extender as the bridge. The image/css files are located at th...
stackexchange/codereview
I am using this bit of code in order to reformat some large ajax responseText into good binary data. It works, albeit slow. The data that I am working with can be as large as 8-10 megs. I need to get this code to be absolutely efficient. How would loop unrolling or Duff's device be applied to this code while still keep...
stackexchange/codereview
First Query: select Batch,Shiplist_Qty,COUNT(X.Batch) as ALLOCATED,(Shiplist_Qty - COUNT(X.Batch)) as Variance from dbo.FG_FILLIN as X where X.Status in('KITTED','ALLOCATED') group by X.Batch,X.Shiplist_Qty Output: Shiplist_Qty ALLOCATED Batch Variance 2 2 CIP2 0 8 ...
stackexchange/codereview
I have the following class: class Position { private double x,y; private int id; private static int count=0; //counts number of times a Position object has been created public Position (double initX, double initY) { x=initX; y=initY; id=count; ...
stackexchange/codereview
I've got a bunch of classes that can Process() objects, and return their own objects: public override IEnumerable<T> Process(IEnumerable<T> incoming) { ... } I want to write a processor class that can wrap one of these processors, and log any uncaught exceptions that the wrapped Process() method might throw. My first...
stackexchange/codereview
Are there any issues with running nested PLINQ queries? For instance: //Contains roughly 7000+ elements mycollections.AsParallel().ForAll(x => { //contains 12 elements anothercollection.AsParallel().ForAll(y => { //download some data from the web and parse it }); });
stackexchange/codereview
I'm building a C++ project in Eclipse using a third party implementation of gcc. The makefile is auto-generated and the object rules are listed in alphabetical order ( I'm not sure if that's relevant ). I can't seem to create the correct configuration of #include directives and forward declarations so that it compiles...
stackexchange/codereview
I'm looking for a non-comparison or comparison based algorithm that can sort an array containing any permutation of the first n positive integers, which should be O(n) time complexity and O(1) space complexity. Is there an existing algorithm that fits these specifications?
stackexchange/codereview
I'm developing a GPS application under Linux, with ARM7 microprocessor. Which compiler do you recommend? Do you know if there is any toolkit with libraries ready to develop GPS applications? A friend of mine recommended gcc... what do you guys think about it? Thank you
stackexchange/codereview
How can I load an embedded resource as an ITemplate? The LoadTemplate() method only takes a string virtual path, and obviously this will not work for embedded resources.
stackexchange/codereview
I have this in a text file: John 20 30 40 mike 30 20 10 How do i read from the text file and separate them into variable name, var1, var2, var3. This is my attempt, seems it doesnt work. Help please. #include <iostream> #include <fstream> #include <string> #include <sstream> using namespace std; int main () { strin...
stackexchange/codereview