instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I downloaded recent sources of Castle.ActiveRecord from github. I succesfully compiled it against vs2010 (targetting .Net 4.0)
I added reference to Castle.Core, Castle.ActiveRecord.dll assembly and using Castle.ActiveRecord; to my simple project (Console app, .Net 4.0)
And i got the following compile error
"The type or... | stackexchange/codereview |
Does anybody have experience with this? I have a twisted app. The clients connect to the server. I added a feature so that if a client connects to a server, but there's already a client from that IP address running, it disconnects the new client.
Once in a while, I shutdown a client computer (or VM, to be precise) with... | stackexchange/codereview |
Installing VS2008 on a machine with BIDS 2008 already installed, is there any pre-cautions I need to take? Will it give me any problems?
| stackexchange/codereview |
I've been playing with Buffer Ring for Emacs and I really like the idea of having several rings of buffers. However, I would like to go a bit further. I go into what some may call "contexts". I usually work on about three projects at once. Often the projects involve different files and different languages. Sometim... | stackexchange/codereview |
One of my favorite workflows with svn is to use Beyond Compare's folder comparison feature to see the net differences between two branches, or a branch and the trunk. Is there a way to do this in git without having to manually create multiple clones of the same repository?
As I ask this question, it occurs to me that ... | stackexchange/codereview |
I am writing an app that is one part PHP and one part C. The two pieces will talk via sockets. As part of the protocol for the IPC, the app will rely on a "message type" byte. For example, if the first byte of the data block is 1, then the rest means something like Show System Info, etc.
In the C header file, I coul... | stackexchange/codereview |
in unistd.h
using open() with the O_APPEND flag gives atomic writes always to the end of the file...
this is great and all, but what if i need to know the offset at which it atomically appended to the file...?
i realize O_APPEND is often used for log files, but I'd actually like to know at what offset in the file it at... | stackexchange/codereview |
I am trying to represent weighted edges. I eventually want to have OutE to be an instance of Eq and Ord, with the constraint that etype is an instance of Eq and Ord. Assume I have following file as temp.hs:
data (Ord etype)=> OutE vtype etype = OutE {destVertex:: vtype, edgeValue::etype}
applyFunBy accessor ordfun = (... | stackexchange/codereview |
I will have 2 directories, folder1 with a set files list, and folder2 with the same set file list but with more files. I need to get folder2's "other files"
Does something exist like file compare (fc) for directories to return the differences?
EDIT I am currently creating 2 lists using dir and then doing a file compa... | stackexchange/codereview |
I'm working on a project where I have a feature in an image described as a set of X & Y coordinates (5-10 points per feature) which are unique for this feature. I also have a database with thousands of features where each have the same type of descriptor. The result looks like this:
myFeature: (x1,y1), (x2,y2), (x3,y3)... | stackexchange/codereview |
In advance, I would like to say thanks for the help. This is a great community and I've found many programming answers here.
I have a table with multiple columns, 5 of which contain dates or null.
I would like to write an sql query that essentially coalesces the 5 columns into 1 column, with the condition that if 1 of ... | stackexchange/codereview |
I was looking for some kind of event that is fired on a RadDatePicker (a telerik control) when text is typed into the control.
It must be fired on every key stroke.
I tried to grab the keyup event, which works fine, but ... if I have typed into the field something like 1/1/201 (which is an incomplete date) the Selected... | stackexchange/codereview |
the following
"CREATE table " & acObj.pullTBLNAME & " ( DATES number,A Text, B Text, C Text, D Text, E Text, F number, G number,H number)"
is creating a table with data types of number and data types of MEMO not the desired type of TEXT.
any help would be greatly appreciated
| stackexchange/codereview |
I have a single form, linked to a single table. The form has three bound text boxes, each allow for data entry to the table. In the text boxes you enter a date, a dollar amount, and a client to bill for the postage. My problem is what if I have multiple clients, billed to a single expense.
I want to alter the clie... | stackexchange/codereview |
I have always wanted to know where exactly the custom list forms are stored in SharePoint. I would rather do the editing with a text editor rather than use SharePoint designer.
Please let me know where they are if you know where it is.
The version my company is using is SharePoint 2007 WSS 3.
Thanks in advance.
| stackexchange/codereview |
I've been developing an audio app for Windows Phone 7 and up to this point have been using the WP7 emulator. The app uses a custom MediaStreamSource class to stream audio to a MediaElement.
On a real device, the custom MediaStreamSource completely fails. After calling MediaElement.Play(), the MediaStreamSource's GetSam... | stackexchange/codereview |
I need to replace characters inside specific tag using javascript when page loads. I have a big list of characters to be replaced. so it will be fast and should work with major browsers.
example:-
<p> The quick brown fox jumps over the lazy dog </p>
will need to looks like
<p> h=f t)ujh lk.,h ghy tfbm' bhjf ghy {>ht ... | stackexchange/codereview |
I'm evaluating MVC 3 and Razor. All was going well until I tried right clicking on Views\Shared and Add..View... I check the 'Create a partial' checkbox, strongly typed view, choose an entity, Razor, Empty... When I press OK, I get a huge error. Template Processing resulted in 1 Errors. The following exception was th... | stackexchange/codereview |
So the console application works fine as a console application. Now I created a MFC GUI application and the dialog itself works fine. When i add the console application files to the MFC project, it complains about how stdafx.h is missing from the console application's files. Now I know I should add #include "stdafx.h" ... | stackexchange/codereview |
Hello stack overflow people.
Does someone know of a code example to make the ruby httpclient do an async post? It has a method but it looks like it just gives you a connection back you have to keep checking, which I assume would still be blocking. I did not see a way to "fire and forget" or just pass a method that it... | stackexchange/codereview |
How can I read a Red5 (RTMFP) stream using HTML5?
| stackexchange/codereview |
I'm using the django-compressor app in Django 1.2.3 to minify and merge a number of included CSS and JS files. In a base template, I have
{% load compress %}
{% compress js %}
{% block js %}
<script type="text/javascript" src="/site_media/js/jquery.query-2.1.7.js">
{% endblock %}
and in a child,
{% block js %}
{{block... | stackexchange/codereview |
I play a movie with MPMoviePlayerController. Later, the app is "restarted" (meaning a pseudo-reset, where all viewControllers are removed and the user returns to the home screen), and the same movie is played again.
This leads to a crash in iOS 3.2.2 on the iPad:
[AVPlaybackItem fpItem]: message sent
to deallocated ... | stackexchange/codereview |
Does anyone know how to print stack traces for exceptions caught while running in the Android emulator in Eclipse? I catch the exception and call .printStackTrace() but I cannot find where it is being written. I have tried .printStackTrace(System.out) and .printStackTrace(System.err). I would be nice to be able to di... | stackexchange/codereview |
I have 4 LinearLayouts that I would like to convert into RelativeLayouts. Using my xml here, I have, as my preferred format:
ImageButton
ImageButton
TextView
Button
How do I change to RelativeLayout to always display the 1st ImageButton on the very top, always display the Button at the very bottom, and have the... | stackexchange/codereview |
I am newbie to C# programming language.
My problem is writing a method that use "item.Visibility" attribute and checking visibility.
The pseudo code of it:
private void MenuItem_Check(MenuItem item){
if ((item.Visibility.ToString()=="Hidden") ||(item.Visibility.ToString()=="Collapsed") )
item.Visibility=Vis... | stackexchange/codereview |
I have a C# application which communicates with DB. I want to test some functions which depend on DB. So I want to be sure that DB has an initial state before each test run. I use NUnit to test my application. What means are available to restore an initial state of DB?
Thank you for your help!
| stackexchange/codereview |
I am reading up on Dijkstra's algorithm and the Floyd-Warshall algorithm. I understand that Dijkstra's finds the optimal route from one node to all other nodes and Floyd-Warshall finds the optimal route for all node pairings.
My question is would Dijkstra's algorithm be more efficient than Floyd's if I run it on every ... | stackexchange/codereview |
I have binded a datagridview to a datatable. But the gridview displays an extra empty row at the bottom ? How should I hide it ? Thanks in Advance
| stackexchange/codereview |
How do I get the jQuery UI Accordion to work when I need to put a wrapper around each element?
Example HTML:
<ul>
<li>
<h3><a href="#">header</a></h3>
<div>
Content goes here
</div>
</li>
<li>
<h3><a href="#">header</a></h3>
<div>
Content goes here
</div>
</li>
</... | stackexchange/codereview |
I have an edit page that gets populated when accessed. The input values work fine, but I'm having a hard time ticking the category checkboxes. I get the information from two tables. One that displays all the categories and the other one that gets the categories associated with the item.
The following code doesn't work ... | stackexchange/codereview |
I am creating a web CRUD application that, after processing internal logic, will publish events to other systems in order to update their data.
I am in the first step of implementing CQRS and it sounds weird that I have to create specific commands for all possible intentions of the user in a Form where I only have one ... | stackexchange/codereview |
i have a project that lies on a network share. The test runner tries to run the tests but fails with an error message.
Unit Test Runner failed to load assembly:
JetBrains.ReSahrper.TaskRunnerFramework.TaskException: Could not load file or assembl 'File://\myshare\Visual Studio 2010\Projects\MyPorject\TestMyProject\bin\... | stackexchange/codereview |
How do I exclude the first and/or last item in the Rails each:
<% @shops.each_with_index do |shop, i| %>
... some code ...
<% end %>
| stackexchange/codereview |
Is this a good way to validate a posted URL?
if (filter_var($_POST['url'], FILTER_VALIDATE_URL)){
echo "valid url";
}else{
echo "invalid url";
}
This is what I wrote to start with, as I could show multiple error messages with it:
function validateURL($url)
{
$pattern = '/^(([\w]+:)?\/\/)?(([\d\w]|%[a-fA-f\d]{2... | stackexchange/codereview |
W/ActivityManager( 81): Launch timeout has expired, giving up wake lock!
W/ActivityManager( 81): Activity idle timeout for HistoryRecord
Does anyone know what reason would cause this happens?
Thanks.
| stackexchange/codereview |
<root>
<gallery name="First"/>
<gallery name="Second"/>
<gallery name="Third"/>
</root>
I'm trying to rename multiple "name" attributes at once:
$rename = array();
foreach($_POST['name'] as $value) {
$rename[] = $value;
}
$objXML = new SimpleXMLElement(XML_FILE_NAME, null, true);
$gallery = $objXML->xpath('... | stackexchange/codereview |
I imagine there are two options:
Build a parallel ANT script and bypass the IDE (seems pretty inefficient when the IDE is so good)
Somehow integrate Proguard/yGuard or similar with IntelliJ
I've tried installing plugins for Proguard/yGuard into IntelliJ but neither seem to be working (installed ok, but don't appear u... | stackexchange/codereview |
In C# I've got some "safe" API code related to UAC elevation. It involves getting the size of an enum (as follows)
int myEnumSize = sizeof (MyEnum);
The code itself is valid, compiles, works correctly etc. But Resharper falsely flags it as a an error ("Cannot use unsafe construct in safe context") within the soluti... | stackexchange/codereview |
Without going in to, too much detail about the rest of the site I have a pretty standard user setup with a users table, id, name, password etc. Some users are "free" users and some have paid through paypal this is set by the "user_premium" table as a 1 or 0.
What I want to do is only allow the download of a zip file if... | stackexchange/codereview |
Possible Duplicates:
Is the C++ STL std::set thread-safe?
Thread safety for STL queue
I'm guessing it isn't, I just want to make sure.
meaning 2 threads using the same std::deque using std::deque::push_back or push_front at the same time.
Same question goes for std::priority_queue and the functions std::priority_que... | stackexchange/codereview |
Suppose you have a general shape defined by a bunch of coordinate points that form something that looks like a circle, ellipse, or general closed curve - how do you find the area bounded by these points?
| stackexchange/codereview |
I have an Object that I need to be able to pass between Activites. It implements Parcelable and I've written all the code related to that.
The problem is that one of the properties of the Object is a Drawable - and really needs to be. Unfortunately, Drawable is neither Parcelable or Serializable. I don't understand ho... | stackexchange/codereview |
(python)
so I have the following values & lists:
name = colour
size = ['256', '512', '1024', '2048', '4096', '8192', '16384', '32768']
depth = ['8', '16', '32']
scalar = ['False', 'True']
alpha = ['False', 'True']
colour = app.Color(0.5)
and I want to iterate over these to produce every possible combination with the f... | stackexchange/codereview |
Is there a way in jquery to select all td columns greater than say 4? I have a table with 16 columns and I initially only want the first 4 shown.
I know I can use:
$('tr td:nth-child(5)').hide();
to hide them one at a time of put a class on all of them but it would be nice if there was a simpler jquery way to do i... | stackexchange/codereview |
Obviously this would be scoped to the current solution, but I need to find all the types that inherit from a particular base type. The Object Browser seems to only support backtracking through the inheritance tree from a given type.
| stackexchange/codereview |
I've discovered that if a serializable Field/Property has a corresponding field of type Boolean having as a name the Field/Property name with "Specified" suffix, the XmlSerializer conditionally exclude that Field/Property from the serialization process. Nice!
So, I want to avoid the definition of those fields, and add ... | stackexchange/codereview |
A static analysis tool keeps telling me that my C# code has resource leaks in it.
Here's an example:
StringReader reader = new StringReader(...);
// do something with reader
...
} // static analysis tool cries that I've leaked **reader**
Is my tool correct? If so, why?
Edit (replying to comment) - My static analys... | stackexchange/codereview |
hai friends...my java file indicate this error:
R.styleable cannot be resolved....
my xml file:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Ga... | stackexchange/codereview |
I have an HTML menu with links like <a href="input&db=<some database>" There are multiple menu items and multiple databases, so I am using GET as my form method and using it in my menu item links.
However, that shows up in the browser's address bar (as /inout&db=mydatabase) & might lead the user to start guessing as t... | stackexchange/codereview |
I have a project where I'm using Bitbucket as my HG server, but I've recently discovered that as a lone developer I can use Fogbugz/Kiln for free. I want to move my files into Kiln but I don't want to lose my history. I'm sure there's a dead-stupid easy way to do it, but I just don't know. How do I do this?
Thanks!
| stackexchange/codereview |
I'm making an app and I'd like to be able to set various colors via user input(edittext) and hex values e.g. #eeeeee and so on. Problem is I cannot seem to figure out how to convert them.
If I do something in code like this it works fine:
titlebar.setBackgroundColor(0xFF545455);
However if I retrieve a value via the e... | stackexchange/codereview |
Why does this:
class OutOfMemoryTest02
{
static void Main()
{
string value = new string('a', int.MaxValue);
}
}
Throw the exception; but this wont:
class OutOfMemoryTest
{
private static void Main()
{
Int64 i = 0;
ArrayList l = new ArrayList();
while (true)
{... | stackexchange/codereview |
I am using rails 2.3.8. I had created a migration for a table called user which currently has plenty of records.
Now the requirement is to add a new column to it.
I had to create a new migration file since rollback would delete the other table data. But adding a new migration did not work.
def self.up
add_column "... | stackexchange/codereview |
Newbie here...easy question for you pro outthere
How to put a button on a htmlpage that says E-mail here, and then the simplemodal contactform pop up (just like in the demo)
Can't get it right with the link... :(
Regards
/Pia
| stackexchange/codereview |
I have a question. Let's say I am running some java core application and I don't really know much about it. The service gets requests and sends back responses. What I want to know is which classes (and methods) are being currently called. Is it possible to put some kind of a time frame and get all java method calls for... | stackexchange/codereview |
all. I made one form for registration, but I want to show the messages for errors in my tooltip Tipsy. For this I must made some function to show the tooltip without hover on the ID object. I try to add new parameter in the default options like this:
$.fn.tipsy.defaults = {
delayIn: 0,
without_hover: tr... | stackexchange/codereview |
How do you send a large (>5MB) post parameter (among other post parameters) in Android?
I'm currently using org.apache.http.client.methods.HttpPost and a list of BasicNameValuePair to send the post params.
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(someURL);
List<NameValuePair... | stackexchange/codereview |
I am looking for a python snippet to read an internet radio stream(.asx, .pls etc) and save it to a file.
The final project is cron'ed script that will record an hour or two of internet radio and then transfer it to my phone for playback during my commute. (3g is kind of spotty along my commute)
any snippits or pointer... | stackexchange/codereview |
I am using Google Protobuf with CMake. On Linux the Protobuf library is found by:
find_package( Protobuf REQUIRED )
CMake knows where to look for the library. How though do I get this to work in Windows? Is there an environment variable I should create, such as PROTOBUF_LIB? I have looked in FindProtobuf.cmake but ca... | stackexchange/codereview |
Let us say that a user enters the search phrase "world peace". However, let us also say the index contains a both document with the title "will we ever get world peace" and a document with the title "world peace, where are you?".
Now, is there a way to give documents starting with "world peace" a bigger boost than othe... | stackexchange/codereview |
I am creating a new project type using MPF.
I want to create a type of node where the backing for that node doesn't actually exist anywhere. To keep it simple, I just want to generate the captions on the fly.
I have created a new node subclass from HierarchyNode because it will eventually have children. I have subcla... | stackexchange/codereview |
Write a program that copies the contents from one file to another in c on linux platform(ubuntu) OR create a program which make copies of files in ubuntu
| stackexchange/codereview |
I have this Grails domain class:
class Main {
Random r;
static constraints = {
}
}
and in database i see, that Random its - tinyblob.
In ORM DSL Documentation i not find indormation about this.
So, maybe, somebody can say me, why Random its a tinyblob?
| stackexchange/codereview |
I want to do form validation at user side with JavaScript (jQuery is also used). The goal is to remove nested bbCode [quote] tags deeper than level 2. Say, we have this text:
[quote=SoundMAX][quote=Laplundik][quote=SoundMAX]
blahblahblah[/quote]
blahblah
[/quote]
blah[/quote]
And get this:
[quote=SoundMAX][quote=Laplu... | stackexchange/codereview |
I know this sounds very dumb, but we have a client that sends out newsletters. But the target market is extremely computer illiterate, so the client requires us to embed the login details in the urls on the newsletter so users can be logged in automatically in the Joomla front-end.
What I have propsed is that we simply... | stackexchange/codereview |
How can it be that Netbeans can compile and run apps, but that the path environmental variable for windows xp doesn't have javac configures correctly (assuming this to be the problem, see GAE error)?
Following this tutorial, I'm getting runtime errors from a Java app. I'm using NB 6.9.1 and the GAE (Google App Engine)... | stackexchange/codereview |
im trying to extend the mysqli class in php in order to create a wrapper class. I would like this class to manage multiple connections.. I am currently at a very early stage and have hit a problem:
Auth Connected no: 1
1045:Access denied for user 'rootty'@'localhost' (using password: YES)
Segmentation fault
It seems wh... | stackexchange/codereview |
I want to write a DWR function that prepares a Vector of Hashtable's and returns to the javascript and there in javascript i need to iterate a Vector and print the content of Hashtable.
My DWR function is:
public Vector getEmployeeData() {
Vector employeeData = new Vector();
// some other content to prepare vect... | stackexchange/codereview |
I can't make correct branch merge in git. For example, I have two branches:
C - D - E my_branch
/
A - B - F - G - K *master
Now I am on master. After "git merge my_branch" I got at master some like this:
A - B - C - D - F - G - K - E - M *master
(M - merge commit)
But I except this:
A - B - F... | stackexchange/codereview |
I'm trying to create an OpenGL application using Cocoa API, and by now everything works fine, except for one thing. When the main window is resized the GL context seems not be updated properly.
Here's is the code used to setup window and render context.
Main window:
m_window = [[NSWindow alloc] initWithContentRec... | stackexchange/codereview |
I'd like to display some small tutorial dialogs on top of my exiting views. I want to be able to see my existing views behind these smaller views.
Do I have to use view controllers in the same I way I would me normal views, and presentmodalviewcontroller etc ?
I haven't tried making a smaller view in interface builder ... | stackexchange/codereview |
I was wondering if someone could tell me the pythonic way to check out the following.
I have a 6 bit binary number and want to check with its decimal values. Using mathematical function is one way but still it would require that I write around 2**6 if constructs.
So I wanted to know if there's an easier statement to wr... | stackexchange/codereview |
I am currently studying on how to create Wordpress administration templates via plug-ins, and according to the Wordpress Wiki you can use hooks such as admin_head, wp_admin_css, and/or login_head to manually echo your link html tag:
echo "<link rel="stylesheet" type="text/css" href="' . get_option('siteurl') . '/wp-con... | stackexchange/codereview |
The biggest problem I am having with learning jQuery is how I do get the path to a particular element, id, or class in my document? I have Firebug and the Firebug jQuery extensions installed, but I am not seeing a way to determine the full path. Any tips for a n00b?
| stackexchange/codereview |
I want to store Location objects into my database, and then be able to load them. How can I build a Location object from its attributes?
Should I create a blank Location and then set the attributes? (If yes, how?)
Should I use my database as a LocationProvider? (If yes, how?)
Thanks!
EDIT: The only working solution I... | stackexchange/codereview |
I have a Git repo with the following structure:
A--B--C--D--E
I’d like to separate the C commit into a branch:
C
/ \
A--B---D--E
How do I do that?
| stackexchange/codereview |
I am new to Jrockit mission control so please bear with me. I have 3 servers which are load balanced and are running JRockit. Can I use a single Management console to monitor all these servers and collate the information?.
| stackexchange/codereview |
I'm trying to build a small application in wxPython (absolute beginner) in which I display a login box before showing the content. I created a frame, inside the frame a panel with a flexigrid to put the login form inside but it doesn't show. If I launch the application the login form is invisible. If I resize the appli... | stackexchange/codereview |
On a number of pages on my Drupal site a mysterious number appears above (EDIT: and below) the HTML the first time the page is visited in (EDIT) any browser. In IE7 and IE8 the problem pages are rendering incorrectly, but in the other browsers the rest of the page renders without problems. After a refresh the number us... | stackexchange/codereview |
I'm trying to sort out the routing for a multinational web store which only has a presence in certain countries. Each store is different and has a different catalogue of products and there is also a world-wide store for all other countries. I have set up Nginx to prepend the two letter country code from an lookup of th... | stackexchange/codereview |
I've inherited a project where such solution is applied:
There are 5 versions of 3rd party library. And there 5 projects in the solution with utilities for corresponding version of 3rd party library.
Quite a lot of utility classes in the solution have identical code for all versions of 3rd party library. The duplicati... | stackexchange/codereview |
Possible Duplicate:
JavaScript “For …in” with Arrays
People always tell me that using FOR IN is a bad practice, please could you tell me why? And why is better to use for with i?
I always liked to use FOR IN because I use PHP too where I use foreach a lot and it's very similar to FOR IN in javascript :)
| stackexchange/codereview |
How to send message to facebook user Inbox using ASP.NET 3.5 and C#?
I am able to post the messages on walls using fbAPI.Stream.Publish() but i need to send message to inbox need to be personal.
Please guide me.
| stackexchange/codereview |
I am new to Android , I want help with Google custom search API use in Android.
| stackexchange/codereview |
Is it a good idea to ban users from choosing common passwords, it might be overkill for a small site, with a couple of thousand visitors a month... but if you sell a product or service where money exchanges hands, would you consider doing this?
| stackexchange/codereview |
I am writing a custom tag for Liquid and want to render a partial in the tag. I am assuming I have to use render_to_string but I can't seem to get it to work.
I've tried all sorts of things, including:
ActionController::Base.render_to_string(:partial => 'path/to/partial')
But nothing seems to work. There has to b... | stackexchange/codereview |
I'm trying to find some good C++ Graphics/Audio Libraries. I have tried searching this site but the only answers I can find is "X library is the best library ever." It gives me no information about the library except some link to some obscure site with the obscure library which also has little information about the li... | stackexchange/codereview |
I am making ajax requests which return elements in a table. That all works great and it displays properly. However, I notice that any elements that are appended to the table that contain something like so
<div id="myId">Some Text</div>
will not be bound by previous javascript methods that bind to the myId method like ... | stackexchange/codereview |
in my .h file i have:
#import <UIKit/UIKit.h>
@interface untitled : UIViewController
{
NSMutableString * sResults;
}
@property (nonatomic,retain) NSMutableString * sResults;
@end
In my .m i have:
#import "untitled.h"
@implementation untitled
@synthesize sResults;
// Implement viewDidLoad to do additio... | stackexchange/codereview |
Is it possible to retrieve the msgid from a given msgstr without messing around with the po-files?
| stackexchange/codereview |
I have very simple question I cant find answer anywhere on the internet.
So, my question is, in procedural programming, code is in code section, which goes into Read Only memory area. Variables are either on stack or heap.
But OOP says that object are created in memory. So, does it mean even functions are written into... | stackexchange/codereview |
Are there any ready-made functions for expanding a C# regex-style character set?
For example, expand("a-z1") would return a string containing all the characters a to z, followed by the number 1.
Here's what I've got so far:
public static string ExpandCharacterSet(string set)
{
var sb = new StringBuilder();
in... | stackexchange/codereview |
I have an ASP.NET MVC 2 action that looks like this:
public ActionResult Index()
{
using(var db = new MyDataContext())
{
var welcomeSnippet = "test";
var articles = db.Posts.Where(p => p.DateOfPublish <= DateTime.Now).Take(5).ToList();
return View(new HomeViewMode... | stackexchange/codereview |
I want to create a virtual device (nexus one) with wvga800, 800x480 but when I do, I can't see the whole screen on my 13" macbook pro, and I can't scroll down to see the bottom of the screen. How can I see the bottom of my virtual phone screen???
thanks,
| stackexchange/codereview |
I am using Ruby On Rails 2.3.5 with haml version 2.2.21 (in my environment.rb file) And all the links I generate in views (using haml) adds the link itself at the end.
Ex :
%li
=link_to 'sign up', {:controller=> 'users' , :action=> 'signup'}
Displays
sign up(users/signup)
Anyone knows why ?
| stackexchange/codereview |
I've been killing myself all day for this one bug. I can't tell you enough how much I'd appreciate any possible help on this.
Basically, I have a very simple script. It logs into a website, looks at a file's header to see if it is an image type and then it downloads it. It then repeats this three times.
The problem her... | stackexchange/codereview |
Does anyone have any C# sample code relating to the implementation of a Lucene Custom Hit Collector.
I am trying to get a summary of hits by document type from my indexes. I could iterate through the hits object but given the potential number of hits I am trying to avoid this overhead.
I have found an example using Ja... | stackexchange/codereview |
What is the recommended way of doing this. Should I call super dealloc first or last or doesn't it matter?
- (void)dealloc
{
[super dealloc];
[orderNumber release];
[orderDate release];
}
Also when it comes to overriding methods like didViewLoad - should I call super first or last?
| stackexchange/codereview |
I am getting this error message from an apparently private API. Anyone have a clue what this could be? It seems to occur, if you use MPMoviePlayerViewController and do a pinch while the movie is running. This will close the player, but afterwards the app crashes.
Only seems to be a problem with certain version of iOS (... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.