instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Say I have this list (with unknown delimiters): ABC-12345, DEF-34567; WER-12312 \n ERT-23423 I know the regex to mach what I need is: [A-ZÆØÅ]{3}-\d{5}. But how do I use the Group or Capture of the .net Match class? This is my first attempt: Public Function ParseSites(ByVal txt As String) As List(Of String) Const ...
stackexchange/codereview
I would like to be able to use the facebook android sdk and post a link to facebook. An example of what I want would be is if you were on facebook and you type a link into your status part, like "http://www.google.com". When you do this a box pops up and your post ends up being a block that has an image and a link. I f...
stackexchange/codereview
Hi i trying to convert these files into eot format. I've found some c++ code for linux, that can do the job, but i need to do this on a windows server. But isn't there a .net implementation that can do the trick? Hope someone can help me to find a solution
stackexchange/codereview
i was trying to import my backup after ive change the charset to utf8 from latin1 , now during my import i got this error ERROR 1071 (42000) at line 2137: Specified key was too long; max key length is 1000 bytes try to change my.cnf and set all charset and connection to utf8 , but now luck , i dont want to get back to ...
stackexchange/codereview
I need to capture the last 5 lines from my "write to log" function so I can add it to a debug email. I can't think of an easy way to do this. I did think I could have an array with 5 items in it, but I'd still need to shuffle the existing items to add the current data. Any ideas ? I'm using vb.net 2005
stackexchange/codereview
Guys, I've tryied all and had not success. Creating: ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:self.urlString]]; request.delegate = self; [request setDefaultResponseEncoding:NSUTF8StringEncoding]; [request setResponseEncoding:NSUTF8StringEncoding]; [request setRequestMethod:@"PU...
stackexchange/codereview
I have an app running within IIS, inside an Application pool running under a User with SQL Server access. Windows authentication doesn't seem to be picking up the User's account though. Any ideas on how I can proceed with this? It's really confusing
stackexchange/codereview
I am creating a function that I need to pass in values from an array, one of the values I need to add in is a series of values for the jquery css array essentially I need to do the following myArray = new Array(); myArray[0] = ""{'float':'left','-webkit-border-top-left-radius':'20px','-webkit-border-bottom-left-radius...
stackexchange/codereview
I am using Cygwin and have GCC (version 4.3.4 20090804 (release) 1 ) installed as Cygwin package. When I built C code using GCC under Cygwin shell, the generated executable output file is a executable of type (PE32 executable for MS Windows (console) Intel 80386 32-bit) and it can only be executed/run under Cygwin shel...
stackexchange/codereview
I am wondering in what cases, there will be webexception thrown out? I know 503 etc and Timeout will be considered as webexception, but I am wondering if I can get the complete list somewhere?
stackexchange/codereview
I need to connect to a sftp/scp server download a file, edit it and then reupload it. As far as i know the SKD itself doesn't give you the ability for secure connections via ftp. Any Ideas?
stackexchange/codereview
I'm using NHibernate in my web app and it is mapped with my database. I have a model, somthing like this: public class Company { public virtual string Name { get; set; } public virtual IList<Employee> Employeers { get; set; } } public class Employee { public virtual string Name { get; set; } public virtual...
stackexchange/codereview
I've been hearing a lot about thread safety lately in Ruby. My question is, how do I determine whether or not my rails app (actually the open source project refinerycms) is thread safe or not?
stackexchange/codereview
Unlike C++, there aren't any const member method and const parameters in C#. What is the reason?
stackexchange/codereview
I've run into a bit of a dilemma. I'm considering making a lite version of my app that will be for free but will run on iAds. The Lite version will therefore have different .xib files because I have to make room for those iAds. So what's better, should I just make some more .xib files in my project and then somehow pro...
stackexchange/codereview
I have the following character encoding issue, somehow I have managed to save data with different character encoding into my database (UTF8) The code and outputs below show 2 sample strings and how they output. 1 of them would need to be changed to UTF8 and the other already is. How do/should I go about checking if I ...
stackexchange/codereview
I have already seen few answers on various places, in regards to setting the order of XML elements being returned by XMLout. However, I am not able to solve a problem using those answers/examples. I have a script that needs to output some XML data, and certain elements need to be printed in certain order. Hash is prett...
stackexchange/codereview
I want functionality like on the focus event of text box i want to select the text of text box and on click of textbox i want to check if text in the textbox is selected then deselect it other wise select. for this i have added code like: $('input').focus(function(){ $(this).select(); }); what code i should add on c...
stackexchange/codereview
I am creating a web setup project using .net 2010. the setup is build successfuly. but when i install the setup it install the web site in virtual directory. like this Now i want Place web app in IIS default website not virtual directory or enable site textbox for entry. Thanks.
stackexchange/codereview
I'm trying to code a game similar to Mario in Java and am having problems with making the dude jump while he is running. What the below code ends up doing is, as the user is holding down right and presses the jump button, Mario basically stops running and jumps, so its like the user has let go of right and pressed jump...
stackexchange/codereview
I have a list< item > of the following public class Item { public string Link { get; set; } public string Title { get; set; } public string Content { get; set; } public DateTime PublishDate { get; set; } public FeedType FeedType { get; set; } public Item() { Link = ""; Title...
stackexchange/codereview
I want to develop an application for both android and iOS devices. Is there a way to develop the application once and deploy on both? Or is it a must to develop for each platform separately?
stackexchange/codereview
I have an edge case, although a very customer visible one, where Tomcat begins processing requests before all dependencies are properly loaded for a Ruby on Rails stack running underneath JRuby. Once Tomcat is restarted, there is something similar to the following happening: undefined method `utc_offset' for nil:NilCl...
stackexchange/codereview
I have a contact script. It uses jQuery for it's ajax requests and animations. I also use it with a hashchange plugin to fix the back button. The slow part lies there. After finishing the animation of the 'flip', the form fades slowly. The browsers seem to block for a sec. I'm trying to make it snappy (no blocking). He...
stackexchange/codereview
Have a real puzzler here. I'm using Atalasoft DotImage to allow the user to add some annotations to an image. When I add two annotations of the same type that contain text that have the same name, I get a javascript permission denied error in the Atalasoft's compressed js. The error is accessing the style member of a r...
stackexchange/codereview
I have a variable temp: String temp = "Ms Abc`<abc@gmail.com`>;Mr Cde`<cde@mail.com`>;Miss Xyz`<xyz@mail.com`>"; Now I have to split this variable temp string into an ArrayList or String[] so that I can extract title, name, emailid for insertion into a database. I'm only able to split the email id using following code...
stackexchange/codereview
Sorry guys!!! pardon me. I'm a beginner in Python. I am writing the following code: for line in file: if StartingMarker in line: # Here: I want to push back 'line' back in 'file' for nextline in file: if EndingMarker in line: # Do some Operation print "Done" How can I push 'line' back in 'file'? Th...
stackexchange/codereview
i am trying here to send the content of a text file by the server and send it to the client this is the server Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint localEP = new IPEndPoint(IPAddress.Any, 9050); server.Bind(localEP); ...
stackexchange/codereview
I am trying validate input from a multi-friend-selector that I have embedded like so: <fb:serverFbml> <script type="text/fbml"> <form action="http://example.com/testSubmit.php" method="POST" onsubmit="return validate(this);"> <fb:multi-friend-input name="hidden"/> <input type="submi...
stackexchange/codereview
So i'm just trying to print day month and year (not printing actually, i'll compare then with some dates that are in the database, but printing is testing), so my code looks like this: print($now = format_date(time(), "custom", "Ymd")); print(' '); print( substr($now, 0, 4)); //year print(' '); print(substr($n...
stackexchange/codereview
I'm having some problems when defining inner classes in a Test class inherited from TestCase, for JUnit 3. Scenario is like following: Foo.java public class Foo { public void method() { ... } } FooTest.java public class FooTest extends TestCase { public class Bar extends Foo { public void method() { ... } } ...
stackexchange/codereview
I have a table described as CREATE TABLE [dbo].[Project]( [id] [int] IDENTITY(1,1) NOT NULL, [WRSA_ID] [varchar](9) NOT NULL, [Administrator] [varchar](5) NOT NULL And a view described as CREATE VIEW [dbo].[ProjectView] AS SELECT Project_ID, Project_Name FROM WRSA.dbo.projects The WRSA_ID in Project is ac...
stackexchange/codereview
I have a Silverlight 4 usercontrol that calls a very long running WCF RIA service. As shown below, I am increasing the default timeout period. _domainContext = new WindowsDashboardDomainContext(); // Increase timeout -- this can be a very long running query ((WebDomainClient<WindowsDashboardDomainContext.IWindowsDashb...
stackexchange/codereview
Sort of like a little indent whenever a picture is clicked....the image goes "inward" a couple pixels. And then when the mouse button is off, the picture goes back to normal. This is like a "depressed" state, like most buttons have. Ideally, is there a JQuery plugin for this?
stackexchange/codereview
Hi i'm try to debug some code but can't work out what it's doing. // For reference, the following is roughly equivalent to: // select p.* // from CTBEquitiesFiles as o inner join CTBEquitiesDetailStaging as p // on o.ID = p.CTBEquitiesFiles.ID // where o.SEFileDate = fileDate and o.SEFileType = 'W' md...
stackexchange/codereview
I've installed the mozrepl add-on in Firefox for Mac OS X, but any attempt to use WWW::Mechanize::Firefox fails in new() with the message Failed to connect to , pattern match timed-out at /Library/Perl/5.10.0/MozRepl/Client.pm line 151 My speculation is that it has to do with mozrepl's default port, 4242. If in Termi...
stackexchange/codereview
I would like to create some sort of authentication attribute and attach it to various OperationContracts. Inside this attribute, it would check for an authentication token and make sure its still valid before the OperationContract is run. What's the best way to implement this on the .net platform? Does wcf have any sp...
stackexchange/codereview
Hi I have been trying to work out the best way to do this today to no avail. What I would ideally like to do is to create an alias distance calculated by the SQL formula below (although I am open to other ways of calculating the distance, this was just the way that seemed it should be easiest) Once I have that alias I ...
stackexchange/codereview
I'm debugging a piece of Javascript that is normally used as follows: a bookmark has a javascript: url that includes: _readability_script.src='http://somewhere.com/readability.js?x='+(Math.random());document.documentElement.appendChild(_readability_script) To debug some mods, I tried to just change that to a file:/// ...
stackexchange/codereview
I'm using Devise and it offers "current_user" method in helpers, so that I can use in views and controllers. However now I'd like to access to the "current_user" method in the models. Here's what I have in controllers now. def create set_email_address(params[:email_address]) Comment.new(params[:content], set_email_...
stackexchange/codereview
I have a defined a user control that looks like this at the top of the .ascx file: <%@ Control Language="C#" ... Description="Agreement" %> How can I access this Description field programmatically, after dynamically loading the user control? The following does NOT work: string desc = ((CustomType)LoadControl("userco...
stackexchange/codereview
Why are constants ignored in asymptotic analysis?
stackexchange/codereview
I am getting "System.StackOverflowException was unhandled" on public VolunteerDBEntities() : base("name=VolunteerDBEntities", "VolunteerDBEntities") { OnContextCreated(); } It happens when I change this: public class OrganizationService : IOrganizationService { private IVal...
stackexchange/codereview
In my application, I have a UINavigationController with a UINavigationBar that I created programmatically. The UINavigationBar has custom positioning within the view, but whenever will/didChangeStatusBarFrame is called (when you enable the in-call status bar), or the app suspends and resumes, the navBar automagically m...
stackexchange/codereview
The Store var timesheet = new Ext.data.JsonStore( { root: 'timesheetEntries', url: 'php/scripts/timecardEntry.script.php', storeId: 'timesheet', autoLoad: true, fields: [ { name: 'id', type: 'integer' }, { name: 'user_id', type: 'integer' }, ...
stackexchange/codereview
Is there an algorithm for generating homophones? Input "cypress", output = { cipress, cipres, cypres, sipress, sypress }
stackexchange/codereview
Dear all, I am working on flex3 and want to update my application by flex3 autoupdate. When my installed application runs, my checkUpdate function calls the autoUpdater code. It starts but when it reaches to 100%, it shows this error: "There was an error downloading the update. Error# 16824" My mxml code is here http:/...
stackexchange/codereview
I need people's advice as to whether this the best way to achieve what I want. Apologies in advance if this is a little to subjective. I want to use Entity Framework V.1 to create something similar to the following C# classes: abstract class User { public int UserId; public string TelephoneNumber; } class Teac...
stackexchange/codereview
I have no clue at all. How do I extract the numeric % data on the right from the link below and display them on my website without updating daily myself? Can a simple PHP + HTML solve my problem? http://www.mrrebates.com/merchants/all_merchants.asp Meanwhile, how do I automatically hyperlink the extracted numeric % a...
stackexchange/codereview
So, here's one of those too-simple-to-fail bugs that we all hate. I have a .lua file that, among other things, tries to load an image via Love's newImageData function (and place it into a button): back_button = buttonmanager.createButton("back", love.image.newImageData("../Images/BackButton.png"), width-200, height-105...
stackexchange/codereview
I saw this line in a anti-sql-injection routine, so what's the meaning of it? ereg_replace('(%)', '\\\1', $str);
stackexchange/codereview
This might be a really ignorant question, but I have a need to create a socket when a person enters my application, use that socket for multiple operations, then dispose of it as soon as the person leaves the page. I would immediately think of using the session array, but I'm not sure that would be the best for perfor...
stackexchange/codereview
I'm looking to somehow enable access for my app to use up practically all the device's RAM. This app I am creating is not designed for general release, it is just a personal project, but it requires a ton (~128mb) of RAM. My Nexus One has 512MB of RAM, but yet I cannot allocate more then ~10MB of RAM max. How can I le...
stackexchange/codereview
Is there a way to know if the application did become active from a local notification? I know there is a way to test if the application was launched from a local notification alert; but if it just was sitting out there the background, and received a notification? I need to run different code, when the app has become a...
stackexchange/codereview
Should I declare the _mcContainer var before the loop or no? (performance increase?) for(var i:uint = _startIndex; i <= _endIndex; ++i){ var _mcContainer:MovieClip = _mcParent["i_" + _position]; } or var _mcContainer:MovieClip; for(var i:uint = _startIndex; i <= _endIndex; ++i){ _mcContainer = _mcParent["i...
stackexchange/codereview
I have a problem with an app that works perfect on my iPhone 4, and on my 3Gs but both are on iOS 4. BUT, when a colleague installed it on his 3G with 3.1.2 on it... it crashes on startup. Is there someway I can test to install the app in a 3.1.2 simulator of some kind? He didn't send me his crash logs yet. Best regar...
stackexchange/codereview
I have a div that contains some data read from an XML file. The problem is that the div flashes the "placeholders" before displaying the XML data. Here's the code: <div id="Scoreboard"> <table cellpadding="0" cellspacing="0" border="0"> <tr spry:detailregion="dsScores" spry:repeat="dsScores"> <td> <table cl...
stackexchange/codereview
This script works well in MVC 1, however I get "invalid arguments error" in MVC2: this.menuItems.Add("action", Html.ActionLink("action", "view", "Controller"));
stackexchange/codereview
For a while now i have been trying to figure out the algorithms behind smooth slides, fades etc..in javascript. Just to give you an example of what am talking about, I have seen a div with content in it that had a height of 0px and on toggled, it didn't just snap to height, it smoothly and gradually grew to height usi...
stackexchange/codereview
I'm writing a syntax highlighting text editor in Java and I've run into a bit of a problem as to what I should do as opposed to what I want to do. Basically the KeyEvent class provides me with a bit of a problem: KeyTyped does not allow me to ID what the key is so it is useless for lexing. KeyPressed is better, it all...
stackexchange/codereview
I'm trying to use Basic HTTP Authentication and followed the example on the PHP manual page. But it doesn't work for me. The variable $_SERVER['PHP_AUTH_USER'] doesn't seem to be set. When a user try to log in, the user is prompted whith a new login-dialog. The server is running PHP 5.3.3 and I have tried with Google C...
stackexchange/codereview
Netbean 6.9 generated the following JPA entity class from this SQL Server 2008 table: I want to get all the ProductDescriptors that have a specific SKU value. Something like this: SELECT * FROM ProductDescriptors WHERE SKU='something' Given the entity class, what's the Java code to get the results? Thanks. @Entity @...
stackexchange/codereview
Is there a JQuery plugin that lets me "overlay" text on top of an image, via a transparent background? Similar to this: On the bottom layer, there's a picture. Then a transparent grey. Then the white text. How can I easily do this in jQuery?
stackexchange/codereview
With the current developments regarding Oracle announcing its intention to charge for a pro (or whatever you call it) version of JVM, and IBM announcing its intention to support OpenJDK, things are getting quite complicated for a large set of Java developers. We have a large piece of work in Java, and we did not have ...
stackexchange/codereview
I'm trying to add two extra config options to my application.rb so I can read them out in controllers. # Extra config.twitter.key = 'foo' config.twitter.secret = 'bar' I am trying to access them using three suggested methods: self.config.twitter.key # Should be extended through ApplicationController Base config.twitte...
stackexchange/codereview
I am checking if I can use Entity Framework or NHibernate to build a conceptual model where fields of some classes are mapped from different physical data sources. EF looks promising, at least on paper: this blog post mentions that "you can mix and match a number of different database vendors, application servers or pr...
stackexchange/codereview
I have a web application that can display a generated PDF file to the user using the following Java code on the server: @Path("MyDocument.pdf/") @GET @Produces({"application/pdf"}) public StreamingOutput getPDF() throws Exception { return new StreamingOutput() { public void write(OutputStream output) throws...
stackexchange/codereview
I'm trying to output lines from a .cpp file to a template in Django. I pass the lines in a tuple called file, and output it one line at a time. {% for line in file %} {{line}}<br /> {% endfor %} Everything is very nicely autoescaped in the line, so that it is displayed correctly (like < and "), except for the \t char...
stackexchange/codereview
I'm trying to install Radiant CMS but whenever I run: rake db:bootstrap Inside the project directory I get: rake aborted! RedCloth is not a class Here is the full trace: (in /Users/richardjburton/testradiant) ** Invoke db:bootstrap (first_time) ** Invoke db:remigrate (first_time) ** Invoke environment (first_time) *...
stackexchange/codereview
I have a XML Document: <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>blahblah</title> <subtitle>blahblah.</subtitle> <link href="blahblah"/> <link href="blahblah"/> <updated>blahblah</updated> <author> <name>blahblah</name> </author> <id>blahblah</id> <...
stackexchange/codereview
I'm trying to load an XDocument from a string, which contains XML elements with excessive whitespace in their text nodes. From my understanding of the MSDN for the XDocument.Parse method, it's supposed to not preserve whitespace. Why then, in this simple example, is whitespace still present? string xml = "<doc> <node>t...
stackexchange/codereview
I am looking to find all attributes of an element that match a certain pattern. So for an element <element s2="1" name="aaaa" id="1" /> <element s3="1" name="aaaa" id="2" /> I would like to be able to find all attributes that start with 's' (returning the value of s1 for the first element and s3 for the value of the s...
stackexchange/codereview
I created a list and setup alerts that send to several individuals when a new item is added to the list. However, I have one additional requirement to have an alert email sent to a Public Folder in Exchange. The folder is setup with an email address, VSrequest@domain.com, but when I try to add that address into the ...
stackexchange/codereview
I am trying to use static libraries that are written in c in an iOS Project. I included the .lib files and the .h into the iOS project. When I try to import the header files in one of my objective-C classes I get a lot of Expected '=',',',';','asm' or 'attribute' before... errors in the .h file of my static library. I ...
stackexchange/codereview
I have a site where I use jquery ui tabs and in the first tab I display general information and on the second tab I have a form that I would like it to send back some information to the server via xml (ajax-style); update the database and subsequently return information for that same tab to update itself. It appears, h...
stackexchange/codereview
Maye I am wrong to use now() to get timestamps when storing data? When I display date/time to the user, of course he wants to see a local time, and if he inputs time related data, rather than me using now() then he will be inputting local date/time. Why code is getting muddled with conversations - what's the best pra...
stackexchange/codereview
When I create the file and append to it the rest of the information I now want to have the ability to read the text file then display the Month of a birthday thats listed in the file. I want to be able to pull in just the info by birthday. So if I choose month 11 I want to pull in all the data entries that have a birth...
stackexchange/codereview
compiling with GCC i get always false from the following code. I believe this is a compiler bug, but someone may know better. #include <iostream> template< class T > class has_apply { typedef char yes[1]; typedef char no[2]; template< class U, U u > struct binder {}; template< class U, unsigned n > ...
stackexchange/codereview
This is an efficiency question about 64 bit ints. Assuming I don't need to modify the value of a "int" parameter, should I pass it by value or reference. Assuming 32 bit machine: 1) 32 bit int: I guess the answer is "pass by value" as "pass by reference" will have overhead of extra memory lookup. 2) 64 bit int: If...
stackexchange/codereview
How do disable and hide the address bar from a WebView?
stackexchange/codereview
What does it mean to extend a path with another path in ANT? if I have the folloing: <path> <pathelement path="build/classes;lib/junit.jar" /> </path> Does it mean that Ant breaks build/classes;lib/junit.jar into build/classes and lib/junit.jar in other words, does ant think that we are defining two path elements? ...
stackexchange/codereview
I just upgraded phpunit via the PEAR package installer and this is the error that i'm getting: PHP Fatal error: Call to undefined method PHPUnit_Util_Filter::addFileToFilter() in /usr/bin/phpunit on line 48 Where should I start in troubleshooting this error?
stackexchange/codereview
I ran some tests on my kernel which uses constant cache. If I use 16,000 floats (16,000 * 4KB = 64KB) then everything runs smoothly. If I use 16,200 it still runs smoothly. I get errors in my results (not from OpenCL) if I use 16,400 floats. Could it just be that technically there is 64.x KB of constant cache available...
stackexchange/codereview
I am attempting to connect to SQL Server running on Windows XP system from a *nix system on a local server via pymssql. However, the connection fails as shown below db = pymssql.connect(host='192.168.1.102',user='www',password='test',database='TestDB') Traceback (most recent call last): File "<stdin>", line 1, in <mo...
stackexchange/codereview
MongoDB has lots of street cred especially since FourSquare uses it. MS SQL Server 2008 R2 also has Geospatial support. Which DB is easier/better for doing GPS-like search? e.g. k-nearest points around point X,Y?
stackexchange/codereview
Honestly, I'm not familiar with LDA, but am required to use MALLET's topic modeling for one of my projects. My question is: given a set of documents within a specific timestamp as the training data for the topic model, how appropriate is it to use the model (using the inferencer) to track the topic trends, for document...
stackexchange/codereview
I am using IQueryable<> to build up batching queries. I have used views successfully to fetch information so the IQueryable<> can find it, but in this instance I can't work out how to map a view, as it depends on properties rather than the entity's ID. Say I have this entity and mapping: public class Calculation { ...
stackexchange/codereview
Create public class in C# such that following conditions are satisfied : The class cannot be instantiated. A function from that class can be called by other class. I tried this way : public abstract class A { public static void fun() { // do process. } } public class B : A { // Now A can't be instantiated being...
stackexchange/codereview
Does Visual Studio 2010's Silverlight support ArrayList? If yes then how to use it, if not then why? How to use ArrayList in Silverlight?
stackexchange/codereview
I have begun using SubSonic and I am wondering how to get it to ignore DateTime properties on insert. I am using the ActiveRecord template and have default methods to create the datetime properties on insert on the DB side. When I try to insert I get the following: SqlDateTime overflow. Must be between 1/1/1753 1...
stackexchange/codereview
How can I instruct Perforce to merge changes into an existing, open, and modified file in the workspace when unshelving a file shelved in the depot? The only options that Perforce appears to offer the user is to overwrite or revert the existing file in the workspace, but this does not allow, for example, to unshelve a...
stackexchange/codereview
My application links against these Frameworks: Cocoa.Framework AppKit.Framework CoreData.Framework Foundation.Framework Note that OpenGL.Framework is NOT linked. However, after setting DYLD_PRINT_LIBRARIES=1, I note that: ... dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL dyld: loaded: /S...
stackexchange/codereview
I have a char array "data" and a Int32 "dictIdFrame". I would like that dictIdFrame takes the value in ASCII (0-255) of data[i,...,i+3], I mean the four bytes become one single int32, where data[i] is the less significant and data[i+3] is the most significant in this int32. I really don't know how to do it... var data ...
stackexchange/codereview
For comparison: something like the shirt builder application at www.blank[dash]label.com Say, if I have fabric image and want to generate base, collar, cuff etc. How should I do it on server side in .NET, and generate different components of shirt.
stackexchange/codereview
I'm wondering how would you solve this task You want to refactor following code class AController < ActionController::Base before_filter :the_method protected def the_method end end into class AController < ActionController::Base include TheModule end but as you are BDD enthusiast, you have to write the spe...
stackexchange/codereview
What are the ways of finding the highest CSS z-index value of specified set of elements and pushing one element that is clicked to the top of the z-index order.
stackexchange/codereview
HI I understand that we can search specific word/Variable in VS2010 editor. For example, If I used a variable called (MyTest) and I want to count how many times I used this variable/word in the code of say (10000) lines. If possible, how can we do it in the current form or count the word in all form the project? Than...
stackexchange/codereview
I have a Seam 2.2 app running under JBoss5.1. In this application I have successfully developed some Graphics using Java Open Flash Chart, which is a Java API for Open Flash Chart. Now I would like to add a X and Y legend like this one. Well I have a graphic which is rendering properly and than I try to set X Label usi...
stackexchange/codereview
I'm introducing a functionality in my iPhone app that allows user to mix and play selected audio files. What is the difference between just using two AVAudioPlayer to play the music files concurrently versus using Apple's example class, MixerHost, to play the files? The class MixerHost can be found on here: http://deve...
stackexchange/codereview
I have a project that uses AsyncTask to get work done in background. This project also uses a class as a generic holder for static values like database keys, but also for one or two useful objects for the whole project. Let's say this class is called public class Constants. I want to access one of these objects from an...
stackexchange/codereview