instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a program that I built that reads and writes files. I built it in Release mode, then tried to run the exe on Win7. At first, with troubleshooting on, Windows simply told me the application closed and it was looking for a solution. After a few seconds, the dialog would disappear and show nothing more.
So with som... | stackexchange/codereview |
I have a view that handles a POST request and attempts to create a new object. However, I know that some of the POST'd data is invalid... But I want to fix it and go ahead and create the object.
The only way I can figure out to be able to 'fix' data in a ModelForm is to create a 'is_valid()' form. To do this, I can e... | stackexchange/codereview |
I would like to parse a given pdf and add a circle when I find a certain text occurence. Highlighting would be even better. I read it is not possible with iTextSharp.
Do you know any library I could use ?
| stackexchange/codereview |
I am trying to grab the device acceleration using CoreMotion. I have this code:
for setting
if (motionManager == nil)
motionManager = [[CMMotionManager alloc] init];
motionManager.deviceMotionUpdateInterval = framesPorKeyframes / 60.0; //60 Hz
motionManager.accelerometerUpdateInterval = framesPorKeyframes / ... | stackexchange/codereview |
I have following problem: I have an UL-List and i want to add values through an input field into this list via jquery. After Clicking a save-link the input should appear as new li entry.
The html
<ul id="first">
<li><input name="" size="40" maxlength="60" value="" id="up-form" /> <a href="javascript:;" onClick="javascr... | stackexchange/codereview |
Can anyone help me install Apache with mod_wsgi to run Python for implementation of RESTful Web services. We're trying to get rid of our existing Java REST services with Apache Tomcat.
The installation platform is SUSE Linux Enterprise. Please provide a step by step installation procedure with required modules, as I tr... | stackexchange/codereview |
I have a list of Item objects that have a date attribute. I also have a a single date I am grabbing from the database.
I want to search through the list, find all of the list items that are greater than the date I have returned from the database.
My list of Items objects has over a thousand objects in it, so I wan... | stackexchange/codereview |
Using Python, how might one read a file's path from a remote server?
This is a bit more clear to me on my local PC.
| stackexchange/codereview |
Strange question, but someone showed me this,
I was wondering can you use the not ! operator for int in C++? (its strange to me).
#include <iostream>
using namespace std;
int main()
{
int a=5, b=4, c=4, d;
d = !( a > b && b <= c) || a > c && !b;
cout << d;
system ("pause");
return 0;
}
| stackexchange/codereview |
How can I build my own search function for the webbrowser control, and if possible remove the built-in one (CTRL + F find function, that is)? Any help regarding this would be appreciated.
Edit - How would I search for text and select it? Pretty much like how the find dialog will find text and select it, I want to do th... | stackexchange/codereview |
I've written a JSFL file to publish some fla's, and now I'd like to call that script from a flex / AIR application.
So the user should browse to the JSFL-file and select it. After selecting the JSFL-file should run and do whatever is described in the JSFL. If I run the JSFL, no problems occur and everything goes fine.... | stackexchange/codereview |
Possible Duplicate:
Change single variable value in querystring
i found this function to add or update a parameter to a given url, it works when the parameter needs to be added, but if the parameter exists it doesn't replace it - sorry i do not know much about regex can anybody please have a look :
function addURLPa... | stackexchange/codereview |
I'm building translation for my application, but I cannot figure out how to translate the default captions for form fields.
Specifically the file_form tag. The default is to produce a button with the caption 'Choose file' and a note to the side stating 'No file chosen'
Where in the yml do these translations exist?
| stackexchange/codereview |
First time doing generics and I am a bit confused here.
I have the following:
public interface GenericDao<T, PK extends java.io.Serializable> {
/**
* Retrieve an object that was previously persisted to the database
* using the reference id as primary key
*
* @param id primary key
* @retur... | stackexchange/codereview |
I am playing with libnetfilter_queue and am looking for a good C library to work with packets captured by libnetfilter_queue. I really like the dpkt library for python and some similar library for C would be wonderful.
Any other workaround or example code for manipulating the packets are also welcome.
with regards,
raj... | stackexchange/codereview |
I'm posting a form to a php script. The form contains a dynamic number of fields named cardObjectX, where X is a counter. Example: cardObject1, cardObject2, and so on. I need to loop through all the cardObject fields in my php script, but because we don't know how many there will be for any given post, we can't hard-co... | stackexchange/codereview |
Is there a way I can convert a GWT Widget to a joomla module or any way in general i can reuse the code from gwt to Joomla.?
| stackexchange/codereview |
I'm trying to make my code JavaScript "strict", so I'm running it through JSLint to ensure my code is compliant.
However, on the following code:
setTimeout("getExtJs()", 2000);
I receive the following error:
Implied eval is evil. Pass a function instead of a string.
How do I make my code JavaScript "strict"?
| stackexchange/codereview |
I've been trying to use emacs in batch mode to pretty-print an ActionScript file but it doesn't quite do what I'd expect it to.
I downloaded actionscript-mode.el and as-config.el from here http://blog.pettomato.com/?p=12
and put them into my home directory, duplicating actionscript-mode.el into my working dir.
Then I m... | stackexchange/codereview |
so I have started using Subversion and am confused about the ignore files.
From what I've read, I can ignore files within a directory with propedit/propset. However, I added a rule to ignore files starting with a dot (swap files for VIM which sometimes get left over), but it would seem then that I would have to apply ... | stackexchange/codereview |
What's the difference between setting the platform -->
over setting the platform target in Build -->
| stackexchange/codereview |
For some time now I've been happily using dlmalloc for a cross-platform project (Windows, Mac OS X, Ubuntu). Recently, however, it seems that using dlmalloc leads to a crash-on-exit on Windows 7.
To make sure that it wasn't something goofy in my project, I created a super-minimal test program-- it doesn't do anything ... | stackexchange/codereview |
How can I find the difference between two SQL timestamp values in minutes and seconds?
| stackexchange/codereview |
How can I register my iPhone app to open when I use openUrl in another app or in a website (in Safari)?
| stackexchange/codereview |
I'm having trouble adding a button to this JFrame, it's having a conflict with the java graphics thing that i'm using. The stuff that's in comments is what i've tried so far, that doesn't worked.
import java.awt.*;
import javax.swing.*;
public class JFramePaint1 {
//Button draw;
public static JButton b = new JButton("... | stackexchange/codereview |
How can i type cast gtkmm window object to gtkmm container
| stackexchange/codereview |
I want to accept prices and convert to integers like:
1.400 -> true, "$1.400,00" , 140000
1.400,00 -> true, "$1.400,00" , 140000
1.400,0 or 1.400,000000 -> true, "$1.400,00" , 140000
//get only the first 2 digits before the comma ->1.400,9394239 -> 1.400,93
1.400.000 -> true, "$1.400.000,00", 140000000
... | stackexchange/codereview |
I've got a view model that has some text properties. And I use Html.DisplayFor to display them on the screen. But those text data won't be post back, so in the case of failed validation, the returned view won't have those data. How do I handle this kind of situation?
Thanks
| stackexchange/codereview |
How can I start a simple python server that will allow me to connect to sockets from some outer source ?
I've tried :
import SocketServer
class MyUDPHandler(SocketServer.BaseRequestHandler):
def handle(self):
data = self.request[0].strip()
socket = self.request[1]
print "%s wrote:" % self.c... | stackexchange/codereview |
I am instantiating a COM object from a VBA script in excel as defined in a C# dll. The C# class I instantiate has a finalizer that performs garbage collection, notably other MS Office objects it references, which I should see appear and disappear in the task manager. In fact, the unit tests demonstrate that an Office ... | stackexchange/codereview |
I have a web page with some auto-generated javascript content which manipulates the DOM when users click on certain links. When I save the page in Firefox, it just saves the original page without the DOM modifications. How can I save or dump the current state of the HTML DOM as manipulated by the javascript?
| stackexchange/codereview |
My objective is to find a element within a context, in this case, a set of jQuery HTML elements.
I'm seems easy, but why does it fail??
s= "<h3 id='boi'> Oi putinho </h3> <p sub='a#b'> Oi oaosidoias aosd asoid aosidoi asodi sa </p>"
j(':first') // => [html]
j(s) // => [h3#boi, <TextNode textContent=" ">, p]
j(':first'... | stackexchange/codereview |
Below is my JSON formated String
{"AliasName": "ysiCountryInfo", "DataClass": {"Description":"United States 111","Code":"usa","WriteOffTaxPointAdjustment":0,"IndexationRounding":6}}
I would like to deserialize object into below class
Option Explicit On
Option Strict On
Imports BaseApp.ysiBaseData
Imports Common.DataCl... | stackexchange/codereview |
MySQL/PHP:
For a query with multiple statements, which deletes rows in four different tables, I want to know the combined number of affected rows. The PHP manual says I'll only get the result from the last 'operation', which suggests it will only tell me how many rows were affected by the last of the DELETE statements.... | stackexchange/codereview |
I have a project which I am working on which is a library. I need to document the internals of the library code for my own purposes, but also need to deliver an API document to my users on how they should use the library.
So, in the document I wish to give to them, I want to include only the "public" functions, structu... | stackexchange/codereview |
I've run into what seems like two pretty major limitations of WP's custom taxonomies.
I have an existing blog with hundreds of post. I'd like to retroactively introduce custom post types and taxonomies.
I have a very elaborate (and difficult to use) categorization scheme that should make this easy to do if I could just... | stackexchange/codereview |
I have a mail() function going in a PHP script. It sends HTML just fine - the headers are set up correctly. What IS incorrect, however, is the representation of HREFs - they come out all garbled in Thunderbird.
Here's what's sent:
<a href='/index.php?page=blahdeblah'>Click</a>
But what is received is this:
Click</index... | stackexchange/codereview |
I am running Visual Studio 2010 Ultimate -- which integrates with TFS source control. However, when I run SQL Server 2008 Business Inteligence Studio, no source control is offered. When I look under Tools... Options... Source Control... there are no plug-ins available. Is this because BI Studio uses the 2008 Visual ... | stackexchange/codereview |
It should match the following criteria (conditional parts are in square brackets:
%[some numbers][.some numbers]d|f|s
notation d|f|s means that one of them has to be there.
Thanks & BR -Matti
| stackexchange/codereview |
I'm currently working on a project that passes some geo data through a WCF service. This data gets up in size (2-4mb sometimes, and in special cases even more). To help decrease the size of data over the wire we've initially enabled gzip compression on IIS (this worked wonders). Alas in testing we found one of the prox... | stackexchange/codereview |
I am just trying my hand at some WinForm Applications and was creating a simple event handler, but I get an error message. Code:
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public delegate void MyHandler1(object sender, EventArgs e);
public Form1()
{
... | stackexchange/codereview |
The web design company I work for has a development side, and a published side for their client sites. For dev sites, the CSS is stored in a directory such as /software-1.5/templates/099/themes/theme-name/theme.css with PIE.htc stored in the same directory. The index page (and all other pages) are stored in the /softwa... | stackexchange/codereview |
Can anyone point me to the Connect suggention entry for the SELECT-EXEC bug, so i may upvote it?
It's been 10 years, and i'm still cursing SQL Server for not allowing SELECT-EXEC syntax, e.g.:
SELECT * FROM (
EXECUTE GetKnownTerroristList @StartDate='2010-01-01', @EndDate='2010-11-01'
)
or
CREATE PROCEDURE dbo.Get... | stackexchange/codereview |
I've been trying to install passenger with no success yet.
I've installed the gem, but when I run
passenger-install-apache2-module
it tells me
This installer must be able to write to the following directory:
/Users/myname/.rvm/gems/ruby-1.9.2-p0/gems/passenger-3.0.0
But it can't do that, because you're running the ins... | stackexchange/codereview |
What am I doing wrong please?
it doesn't show any error, and doesn't play.
MediaElement song = new MediaElement();
song.Source = new Uri(@"\WP7_aaa\WP7_aaa\GameSounds\MenuScreen.mp3", UriKind.Relative);
LayoutRoot.Children.Add(song);
song.AutoPlay = false;
song.Play();
| stackexchange/codereview |
How does one go about turning off my PHP site from displaying the php logo gif when accessing: sitename.com/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42
After some reading and hunting I came across this:
PHP CODER GUY WITH BREADSTICKS (Thies
C. Arntzen): PHP Version 4.0.0 - 4.2.3
BROWN DOG IN GRASS (Stig's dog,
Nadia... | stackexchange/codereview |
I have a query to construct
Sometimes it will be
strSQL = 'Select * from tableA'
sometimes it will be
strSQL = 'Select * from tableA where FieldA > x'
sometimes it will be
strSQL = 'Select * from tableA where FieldB < y'
and finally sometimes it's
strSQL = 'Select * from tableA where FieldA > x and FieldB < y'
So th... | stackexchange/codereview |
I'm working on a simple game to experience the multiplayer game development on mobile plaforms especially on Android and iOS. I'm now planning network/multiplayer side of the game and need some advice.
Firstly i think about Google App Engine as the server side of the game. But i learned that app engine cannot connect d... | stackexchange/codereview |
I write server code but have little to almost no JQ experience. I have a project that I'm working on right now that requires a small amount of JQuery. Can someone tell me where I can find someone that really, truly knows their stuff that might be looking to make a few extra bucks for the holiday season?
I'm working on ... | stackexchange/codereview |
How to implement cover-flow in ipad..
is it possible is we can develop cover-flow in ipad ? , coz in ipad device it doesnt contain cover-flow functionality.
| stackexchange/codereview |
I am writing a rather lengthy PowerShell script to perform a lot of functions. For the most part, everything is going very well.
However, another function I am running at all levels of the script is a very detailed log. I'll post the command line portion as an example (simplified):
$Batch = $RunMe[1]
$ResultCo... | stackexchange/codereview |
I'm having some trouble with characters like spaces, plus signs, double quotes and accented latin characters in rails when adding them to urls as parameters. They are always converted to numbers preceded by %, and this is generating a lot of trouble for us, since portuguese uses a lot of those characters.
Everything wo... | stackexchange/codereview |
(link in revision history)
Notice some weird borders around schools like: USC (first row), W (third row)?
It doesn't happen in other browsers. I'm using Mozilla firefox 3.6.12.
| stackexchange/codereview |
I'm trying to create something like *.ascxs' factory.
Scenario:
I would like to render controls which depends on model, which i've passed to partialView.
I'd like to achieve something like this:
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyAbstractModel>" %>
<%= Model.Property1 %>
<!--... | stackexchange/codereview |
I have a window.open function call on click, which opens an .swf albumplayer.
var win = null;
function NewWindow(wizpage, wizname, w, h, scroll){
LeftPosition = (screen.width) ? (screen.width-w)-8 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height=' + h + ',width=' + w + ',top= 100,' + Top... | stackexchange/codereview |
How can an Android listener be created to perform a task just before entering power save mode? Also: what are some of the low power options that can be controlled by this task?
| stackexchange/codereview |
We have an application which starts on a logon page and then navigates to a second page from which an applet is loaded. Everything works great. When the user logs off, the browser navigates back to the logon screen. If the user logs back on again, the browser crashes when parts of the applet are initialized. ... | stackexchange/codereview |
I know how to add a special folder to "File System on Target Machine" and make it a custom folder. I create one called "Program X" for example. The msi gets passed a parameter, 'ProgramXInstallPath', at the command line which is set to 'D:\SomeFolder\ProgramX'. I use the method from the following link to get and set... | stackexchange/codereview |
Either my debugger is broken or there's something fundamental that I am not understanding.
I have some very basic code in a very basic command line program that should crash. However, it is not crashing.
int main (int argc, const char * argv[])
{
NSString *string = [[NSString alloc] initWithString:@"Hello"];
[... | stackexchange/codereview |
When I try to run the following query:
... WHERE `date` = DATE_ADD(NOW(), INTERVAL 10 HOUR)
It doesn't work, so I have to use the $date = date("Y-m-d", strtotime('+10 hours'))
But why date_add doesn't work?
Thanks much
| stackexchange/codereview |
I'm searching for a solution to call virtual function dynamicly. This means to support function calls with offsets and dynamic types at runtime.
I'm working on a plugin for a game (Counter-Strike: Source, if you know it). The plugin interface isn't likely and so you cannot extend as much as most people want. To realize... | stackexchange/codereview |
The webserver wants to get info like screen size from each mobile handset that browses a webpage. The Javascript functions screen.width and screen.height return wildly inaccurate values.
Is there a way for the webserver to detect the screen size of the mobile handset? The client browser is webkit on Android.
| stackexchange/codereview |
I'm using .Net 3.5 SP1. Just installed ADO.Net Data Service (ADO.NET Data Services Update for .NET Framework 3.5 SP1 )
I can successfully create Entities using ADO.Net Entity Framework. I'm following this article Create OData Feed. Instead of config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); I have config.Se... | stackexchange/codereview |
I have the following Mysql query
explain SELECT count(*) as assetCount
FROM MdhRawAsset m
where sysCreationDate > date_add(now(), INTERVAL -1 DAY)
AND sysCreationDate <= now()
AND itemType = 'TS';
Results :
| id | select_type | table | type |possible_keys ... | stackexchange/codereview |
I want to take screenshots of the iPhone app view and save the images to a given location.
My code below saves the images to the photo library, but I want to save it to some other given location. Is it possible to do so? Please help me up.
My code is here:
UIGraphicsBeginImageContext(self.view.bounds.size);
[self.view.... | stackexchange/codereview |
I have an audit table setup which essentially mirrors one of my tables along with a date, user and command type. Here's how it might look like:
AuditID UserID Individual modtype user audit_performed
1 1239 Day Meff INSERT dbo 2010-11-04 14:50:56.357
2 2334 Dasdf fdlla ... | stackexchange/codereview |
I've got a method I'm calling expired? which is simply meant to check to see if its been more than 24 hours since my object has been updated, and if so return true. Here is my method, but although it works, it feels dirty, can anybody think of a better way to achieve my goal?
DAY_IN_SECS = 86400
def expired?
return ... | stackexchange/codereview |
Does anyone know of a widget that gives Safari-style tabs that expand and contract between certain dimensions when the window is resized, spilling over to a drop down menu when (amount of tabs)*(min tab width) > (window width)?
| stackexchange/codereview |
As a .NET web developer, I've always used SQL Server as my database store because it's already in the MSFT ecosystem and easy to work with from the .NET platform.
Recently, however, I had a computer almost literally blow up, and consequently lost all my data in SQL Server on that machine.
Now that I've got a new comput... | stackexchange/codereview |
I am using Flash Builder Buritto with the latest "nightly" Flex 4.5 SDK, build 17689. It seems the dropShadowEnabled property is no longer supported with the Hero default skin. I get this compilation error:
The style 'dropShadowVisible' is only
supported by type
'spark.components.Panel' with the
theme(s) 'spar... | stackexchange/codereview |
There are a few things that I don't understand about iOS memory management.
I wanted to know how much memory typically an iPhone app takes while running on device (Is there any fix number like 10MB?)
If an app includes lot of large images what is the impact on the memory? Do they only impact memory when they ar... | stackexchange/codereview |
I'm building a Silverlight Windows Phone 7 app. I have the following element:
<TextBox x:Name="DownloadFailed"
Text="MySite.com could not be reached at this time. Do you have a network connection? 

Try again in a few minutes."
BorderBrush="{x:Null}" Background="{x:Null}"
... | stackexchange/codereview |
It is well documented that PHP5 OOP objects are passed by reference by default. If this is by default, it seems to me there is a no-default way to copy with no reference, how??
function refObj($object){
foreach($object as &$o){
$o = 'this will change to ' . $o;
}
return $object;
}
$obj = new StdCl... | stackexchange/codereview |
if there are two threads as producer/consumer is it good idea to have following line to prevent deadlocks. I'm aware of live locks but suppose they do a lot of work before calling this Wait() method:
// member variable
object _syncLock = new object();
void Wait()
{
lock (_syncLock)
{
Monitor.Pulse(_s... | stackexchange/codereview |
I found some fantastic code that meets the needs for my project from here:
http://www.askthecssguy.com/examples/rowlock/example9.html
I've modified the code so that when the user selects an item and then clicks a button the data is processed (e.g. erase the data from a database on the server)
I have not been able to f... | stackexchange/codereview |
I have a list of elements with weights:
{ id1, weight1 },
{ id2, weight2 },
...
{ idN, weightN }
Weights are small integers (say, less than 1000, often less than 50). Total number of ids in the list is less than 1000 as well. (Each id is listed only once.)
For each query I have to return a "random enough" element from... | stackexchange/codereview |
Please help me with this code, it is making me crazy. This is a very simple program with 8-bit timer, cycling through all 8 leds (one-by-one). Am using ATSTK600 board.
My timers are working well, I think there is some problem with the loops (when I debug this program using avr studio-gcc, I can see all the leds working... | stackexchange/codereview |
I have special offerings gallery site (lets say example.com) and each offering has a "Like" button. "Like" button has example.com/45 url which directs original offering site (lets say superoffer.com). The problem is that my like button shows superoffer.com "likes" and not my redirect url likes. How can i pass this prob... | stackexchange/codereview |
I am trying to understand the difference between & and &&operators in C#. I searched on the internet without success. Can somebody please explain with an example?
| stackexchange/codereview |
To a perl script that I am writing, there can be a lot (~50) of command line options provided. Most of them are optional, so a call will have only some of the options provided.
I am using Getopt::Long but it does not allow me to use GetOptions more than once. As a result, I have to use all the command line options in o... | stackexchange/codereview |
So I have spent many sleepless nights the last two weeks trying to work on what I thought would be a simple program: I am trying to create a Binary Tree from a list of integers in a specific file. The numbers are inserted into a binary tree. I then prompt user for a value to search for to see if is a node. If it is the... | stackexchange/codereview |
I am trying to serialize the following view
def headerimage(request):
service_view = list( Service_images.objects.filter(service='7'))
return render_to_response ('headerimage.html',{'service_view':service_view}, context_instance=RequestContext(request))
This is supposed to return JSON in the form shown below
{"fol... | stackexchange/codereview |
It seems like it would be very useful to make a widget that you can type directly into.
Does anyone know what the rationale was for not supporting it, and if it's slated to be supported on future versions?
| stackexchange/codereview |
I have a bissare problem. In the viewDidLoad method of a UITableViewController I have:
myfields = [NSMutableArray array];
for (int x = 0; x < 10; x++) {
UITextField * field = [[UITextField alloc] initWithFrame:CGRectMake(130,12,150,25)];
field.backgroundColor = [UIColor clearColor];
field.fo... | stackexchange/codereview |
I am trying to refactor my views a bit and up til now i have been using the built HTML helpers but i thought i would create my own - they're extension methods right?
I wonder if anyone can confirm or give advise when an HTML is needed? I think i once saw a document that said if you use 1 IF statement in your views enca... | stackexchange/codereview |
I'm writting some code to handle SerwerChanges. I have a function in class ServerChangesArchive:
+(id) httpQueueWithLogin:(NSString*) _login password:(NSString*) _password lastSyncTime:(NSDate*) date;
When I run this function using Simulator everything works fine, but on device I'm getting
[ServerChangesArchive httpQ... | stackexchange/codereview |
According to the JDBC 4.0 Specification, does JDBC set the database session time zone to that of the Java virtual machine (i.e. TimeZone#getDefault())?
| stackexchange/codereview |
Possible Duplicate:
Calling a webservice that uses ISO-8859-1 encoding from WCF
I am trying to consume an external Web Service (the web service has PHP implementation) using VS 2008, .net 3.5, WCF( Environment : Windows XP and VS 2008). I add Service Reference to Web Service, VS generates WCF Proxy.
Binding is basic... | stackexchange/codereview |
I'm running Subversion 1.6.13 on Mac OS 10.5.8, and I need to be able to checkout a repo using the --non-interactive option.
The following command works fine:
$ svn --force checkout https://MY_REPO MY_DIR
I'm not prompted for a username or password since I have already entered it once before. The following command fai... | stackexchange/codereview |
If I was asked to query JOIN of more than three tables, what is the best way I go about understanding the relationship of the tables before I code. Should I use Database Diagram in SQL Server, or would I be given the necessary information? What would you recommend?
Thanks in advance for your time.
| stackexchange/codereview |
Can someone help me finding the word frequency in all lucene index
for example if doc A has 3 number of word (B) and doc C has 2 of them, I'd like a method to return 5 showing the frequency of word (B) in all lucene index
| stackexchange/codereview |
My simplest ASP.NET MVC 2 controllers make calls to my service layer and map view models to entities using AutoMapper. Everything looks fantastic and there is no repeated code.
However, when I get into scenarios where I have similar behavior I have trouble balancing Single Responsibility Principle (SRP) with Don't Rep... | stackexchange/codereview |
I have a mvc 3 web app, but my shared web hosting company supports MVC 2 only.
So I deploy mvc 3 related dlls too, and it had worked well on the server till it was mvc 3 beta.
Yesterday, I upgraded my pc environment to the mvc 3 RC and rebuilt my web app. The app works well on my local pc, but when i deploy and run on ... | stackexchange/codereview |
Is there any way to create Map or Set type data structures at compile time?
The reason I ask this is because I'm working with App Engine and I have some data structures that need to be sorted and searched, but they're constant, so I'd like to avoid the time cost of creating them at start-up.
| stackexchange/codereview |
I’m having issues with a WPF Expander that I have in a user control that gets rendered in a ListBox. Essentially I’m trying to get PopUpButton behavior on each ListItem in my ListBox. When I open the Expander the content is rendering behind everything else as if it were transparent, or lower in the z-order. I’ve tried ... | stackexchange/codereview |
I need a scripting language for describing very complicated workflows.
These workflows need to be paused
whenever user input is required, and
resumed after it is given (could be
months later). Seems like serializable continuations from Stackless would be a good fit.
Users also need to be able to edit
the workflows t... | stackexchange/codereview |
I use Git on my 2 Macs, which each have a different executable path (one is homebrew, one is make/install'd). I also use Git via Tramp mode.
So basically I want this, in pseudo code:
if home mac:
(setq magit-git-executable "~/Projects/homebrew/bin/git")
else if work mac:
(setq magit-git-executable "/usr/local/g... | stackexchange/codereview |
Possible Duplicate:
Delete all but the most recent X files in bash
I have a script to create incremental backups daily and I need to delete all backups but last 5.
For example, I have this folders:
drwxr-xr-x 4 root root 4096 Oct 29 01:10 2010-10-29
drwxr-xr-x 4 root root 4096 Oct 30 01:10 2010-10-30
drwxr-xr-x ... | stackexchange/codereview |
I want to copy some files with Rake, but compared to Ant this is kind of clumsy and my implementation is a bit stupid.
The source files have read only flags, I wish to copy files with write access (ant did this automatically).
If the target is not newer than the source, then I don't want to copy.
Here is my current cod... | stackexchange/codereview |
I'd like to introduce Maven to my fellow coworkers who mostly use Ant to build their projects.
One of my goal would be to show them the benefit of building a corporate repository to easily share reusable components. But first of all, I need to show them the basics.
I came across this question about presentation materi... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.