instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Give the following class:
public Person
{
public string Name {get; set;}
public string Age {get; set; }
}
If I wanted to then Return a IList is there anyway to return the List will all the Functionality of an IList but with the setters removed? Possibly with an extension method to remove the setters. I would Imagine... | stackexchange/codereview |
I'm having a problem converting an interface that has already been implemented to a different class that I want to perform some additional methods.
public interface ISomeInterface
{
int Widgets { get; set;}
}
public class SomeClassA : ISomeInterface
{
int Widgets { get; set;}
}
public class SomeClassB : ISome... | stackexchange/codereview |
Following the README documentation, I installed Devise into an existing Rails 3 application. However, it doesn't seem to work. When I try to access one of my controllers that have before_filter :authenticate_application_user!, I get the following error message:
undefined method 'new_application_user_session_path' for #... | stackexchange/codereview |
The following error appeared at Tomcat/OpenEJB startup after upgrading to OpenEJB 3.1.3:
ERROR - Unable to register MBean
java.lang.IllegalStateException: javax.management.MalformedObjectNameException: Invalid character ',' in key part of property
at org.apache.openejb.monitoring.ObjectNameBuilder.build(ObjectName... | stackexchange/codereview |
I have an array of integers, which could run into the hundreds of thousands (or more), sorted numerically ascending since that's how they were originally stacked.
I need to be able to query the array to get the index of its first occurrence of a number >= some input, as efficiently as possible. The only way I would kn... | stackexchange/codereview |
Hi
In my android app I can make calls to Twitter api immediately after I login. I am using same instance of OAuthConsumer. But when I create OAuthconsumer for subsequent call and use setTokenWithSecret I get Incorrect signature error.
I spent few hours trying to debug but no luck... any help is appreciated.
Following... | stackexchange/codereview |
I am trying to find the most efficient, optimized and fastest way to compare to std vectors of CString. the strings in question are case-sensitive. I have tried using the == operator for the vector container but this sometimes return false positives. I mean for instance if one vector contains elements in the order (a,b... | stackexchange/codereview |
We've been using Memcached for a while and recently started testing Membase in AWS. We're testing a single instance of Membase 1.6.0 on a large EC2 instance with 5GB RAM, 750GB disk (Linux FC8).
We've noticed that SQLite seems to block on eviction purges on an hourly basis when expiryPagerSleeptime wakes up. Although t... | stackexchange/codereview |
When pasting CSV data into an HTML text area, or in all the jquery rich text editors I could find, data is visually "messed up": columns alignment is lost, in particular when a cell is long and the one below is very short.
Is anyone aware of some kind of plugin similar to a text area that would visually preserve column... | stackexchange/codereview |
EDIT:::
I wonder if anyone has ever given this some thought or have some ideas about it. Like most of you I have multiple programs running at the same time. I have set up alert methods in each such that I get email alerts when a program stops or runs into errors. Now some of these programs use visual studio TaskFactory... | stackexchange/codereview |
I have a datetime column in MySQL let's call it $time. It's coming form a CakePHP form. If I try to echo it I get I just get "Array". If I print_r() on it I get:
Array ( [month] => 10 [day] => 30 [year] => 2010 [hour] => 16 [min] => 30 )
I want to echo this out as a formatted date, nothing seems to work because it'... | stackexchange/codereview |
I wanna set up a way in which users can place a marker on the map to tell their address and i should be able to extract the lat and long and store it in the database.
Is there somekinda plugin which i can modify and use ?
| stackexchange/codereview |
X post from http://drupal.org/node/953016
The Drupal 7 AJAX system is great, it works very smoothly for forms and even for links.
What I can't work out how to do in a sane way is to call it from javascript. I may want to have a dynamic page without a form and as part of that make a Drupal ajax call, specifically so tha... | stackexchange/codereview |
I have some code that inserts data into some tables (one table has a FILESTREAM column) and then calls SubmitChanges after it is done.
db.Log = new System.IO.StreamWriter(@"c:\windows\temp\linq.log") { AutoFlush = true };
db.SubmitChanges(ConflictMode.FailOnFirstConflict);
I have referenced the following links but the... | stackexchange/codereview |
Here is the scenario,
Let's say I have a user class like so:
public class User{
private String firstName;
private String lastName;
//...
// setter, getters
}
Then I have a class like so to handle user Comments:
public class Comments{
// some fields
public static loadComments(User user, int count){...}
}
So fa... | stackexchange/codereview |
I need to wade through a lot of HTML using JavaScript to adjust the attribute quote syntax to be all double quotes. I don't need to worry about key-only attributes like "disabled" or "selected".
Here is my current test case:
var text = "<input class=daily_input type='hidden' size='1' value=3 disabled />";
var regex = /... | stackexchange/codereview |
Consider a new ASP.NET MVC project and haven't done any modifications to the code. I run the application and click the [Log On] link at the top right and try to register a new account. After about a minute it times out with the following:
A network-related or instance-specific error occurred while establishing a conne... | stackexchange/codereview |
Whenever I upgrade Zend Framework I study the changelogs ( http://framework.zend.com/changelog ) but still feel like I am going through a bit of leap of faith to ensure my application does not break.
So far, I have not really had any problems. A large amount of the application is under unit test and web test. But, test... | stackexchange/codereview |
I've been searching for information on the following Tkinter window features without success. Platform is Windows, Python 2.7. At the end of this post is code that can be used to explore Tkinter window events.
How can one detect window minimize/maximize events? The event object returned by binding to a window's <Confi... | stackexchange/codereview |
I get an UnboundLocalError because I use a template value inside an if statement which is not executed. What is the standard way to handle this situation?
class Test(webapp.RequestHandler):
def get(self):
user = users.get_current_user()
if user:
greeting = ('Hello, ' + user.nickna... | stackexchange/codereview |
I am working on an Android application that displays a list of items when a tab is selected, then displays detail information about an item that was selected from the list :
Activity1
Tab1 -(intent)-> Activity 2: item1
item2 -(intent)-> Activity 3: ImageView1
item3 TextView1
... ImageButton1
... | stackexchange/codereview |
I'm currently attempting to develop an HTML5/JavaScript application which is similar to:
http://mugtug.com/sketchpad/
The source is right there, but I think I'd run into some copyright issues by cutting/pasting (I suppose I could contact them), but I'd rather use some free APIs that would have similar functionality.
Th... | stackexchange/codereview |
what's the best way to perform bitwise operations on vector<bool>?
as i understand, vector<bool> is a specialisation that uses one bit per boolean. I chose vector<bool> for memory saving reasons. I know that there are some problems with vector<bool> but for my needs it's apropriate.
now - what's the most performant way... | stackexchange/codereview |
Mainly I ask this because I don't want to distribute both versions, and if I need to instal a 64bit .NET on an x64 PC and a 32bit .NET on a 32 bit PC then I would need to make this check in my loader application to download the correct version for the correct PC.
However, if I just do a one for all, it would be easier ... | stackexchange/codereview |
I was trying to sniff HTTP packets though wireshark on my localhost, when i tried working on a web2py instance at my localhost no http connections found. While digging deeper into it i found it is not creating `any connections in the application layer. well then how does it communicate with browsers without http? (I ha... | stackexchange/codereview |
I'm having several div's #mydiv1, #mydiv2, #mydiv3, ... and want to assign click handlers to them:
$(document).ready(function(){
for(var i = 0; i < 20; i++) {
$('#question' + i).click( function(){
alert('you clicked ' + i);
});
}
});
But instead of showing 'you clicked 3' when click on #mydiv3 (as fo... | stackexchange/codereview |
I want to do an application using (Indian language )Malayalam Unicode font.I have applied lots of Malayalam Unicode fonts like (RachanaMac.ttf and others) but the its not supporting all the characters even after using the custom font. I have done application using malayalam asciicode fonts ,its works perfectly when i u... | stackexchange/codereview |
I have a daemon (which must be written in C) which should have a remote like common media players do:
mediaplayer-rc --enqueue /path/to/song.mp3
If mediaplayer-daemon isn't running, it is started by the remote controller. The remote will pass the message.
I took the approach that seemed the most intuitive to me:
The ... | stackexchange/codereview |
So I give in. I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great thing to have. And then I saw oh Android has emma integration as well awesome ... an... | stackexchange/codereview |
I have a Repeater on my page. There's nothing spectacular about it.
<asp:Repeater runat="server" ID="rptBusiness">
<HeaderTemplate>
<table>
<colgroup>
<col width="170px" />
<col width="75px" />
<col width="75px" />
</colgroup>
... | stackexchange/codereview |
Is it true that the standard way to say "cache all Model, View, Controller code" when running the Rails server, by using the following line in config/environments/development.rb
config.cache_classes = true
and for don't cache any of them:
config.cache_classes = false
and to "selectively" cache any one of them, use th... | stackexchange/codereview |
I was trying to create a Junit Testing framework within an existing RFT framework. The JUnit set up works fine to the point where we don't have to instantiate any framework classes.Whenever we are trying to access framework classes it throws the below exception. I did look for similar issues online but couldn't get a s... | stackexchange/codereview |
I have been having some trouble working with inner joins I guess:
select count(distinct id)
from svn1,
svn2
where svn1.revno = svn2.revno
and svn1.type = 'Bug'
and svn2.authors IN (select authors
from svn2
where revno = '33')
How to make this fas... | stackexchange/codereview |
Is there a way to setup a Moq Mock using a string parameter instead of an expression? You can do this using the protected extensions for a protected function, but it throws an exception if public. For example, here is how you might setup a protected void function with Moq:
myMock.Protected().Setup("MyProtectedFunctio... | stackexchange/codereview |
I recently moved my Rails app to Postgres and noticed in the developments logs it's full of SQL statements like the following:
SQL (1.1ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHER... | stackexchange/codereview |
While trying to do some operation with files the code goes like this,
File file=new File("aaa.txt");
I saw in a program BufferedReader and InputStreamReader were also included can you explain this with a simple example? I read in many sites about file handling but still its confusing!!!!
| stackexchange/codereview |
I'm working on a Synergy port to the Android (see synergy-foss.org).
The only way I've found to inject keystrokes is to use the Cyanogen Mod and write keystrokes to /dev/uinput. However, my app does not have permissions to write to /dev/uinput. The only way around this that I've found is to chmod 777 /dev/uinput.
How... | stackexchange/codereview |
public static void main(String argv[]) {
try {
String date = new java.text.SimpleDateFormat("MM-dd-yyyy")
.format(new java.util.Date());
File inFolder = new File("Output/" + date + "_4D");
File outFolder = new File("Output/" + date + "_4D" + ".zip");
ZipOutputStream o... | stackexchange/codereview |
i am working on AMFPHP and i had this problem
-> i am using XAMPP server with AMFPHP gate way for flex and this is working well for returning values from PHP
->the problem is how can i get the object in php which i passed to the pap class using flex code is here:-
connection.objectEncoding = ObjectEncodin... | stackexchange/codereview |
How to get drive letters which are not in use in system in MFC ?
Thanks.
| stackexchange/codereview |
In my Flash File I have a wheel. The user is able to rotate the wheel by using arrows to jump to the next "segment" (think 20 images attached to each other forming the circumference of the wheel).
Clicking the arrows initiates this code:
protected function rotate():void
{
var rotateTo:Number = (-36... | stackexchange/codereview |
I want track all outgoing HTTP requests from my server. Is there any easy way to do this?
| stackexchange/codereview |
In order to avoid hot-linking, S3 bandwidth leeching, etc I would like to make my bucket private and serve the files through a Rails app. Concept in general sounds very easy, but I am not entirely sure which approach would be the best for the situation.
I am using paperclip for general asset management. Is there any bu... | stackexchange/codereview |
I've asked this before, but sadly I'm still having issues and the issue wasn't resolved. Basically, I'm dynamically creating a LinkButton for each row of a table I am generating, and that button has the task of deleting the row with the corresponding ID from the database. To do this, I seemingly need to assign the Link... | stackexchange/codereview |
I have a table with ~100 columns, about ~30M rows, on MSSQL server 2005.
I need to alter 2 columns - change their types from VARCHAR(1024) to VARCHAR(max). These columns does not have index on them.
I'm worried that doing so will fill up the log, and cause the operation to fail. How can I estimate the needed free dis... | stackexchange/codereview |
I'm using Java and Ibatis to call a stored procedure on on oracle database. I seem to be having an issue setting up with parameters.
The store procedure looks like the following:
PROCEDURE Get_Semployees_By_Clt_ID
(
client_id IN HRIS.SEMPLOYEES.SEE_CLT_ID%TYPE,
ref_cursor OUT SYS_REFCURSOR
... | stackexchange/codereview |
I recently asked about the wisdom of using multiple Xcode projects to separate project components. I have decided to follow this route in my next project.
I attempted to add another project to a master Xcode project by dragging and dropping it into the sidebar. However, when I #import any of the classes that are defi... | stackexchange/codereview |
Which is the most elementary queue in java. I just need enqueue and dequeue operations. My application is not concurrent. I find lot of confusing queue names here.
| stackexchange/codereview |
item = [[NSMutableDictionary alloc] init];
[[self item] setObject:self.currentDay forKey:@"day"];
This is the code for iphone wat is its equivalent in java
| stackexchange/codereview |
I’m not sure this is the best example, but here goes. Let’s say I want to draw an object to a canvas in an Android application. I need to do some math and call a method to return screen size to figure out where to draw it since my app should support multiple screens. I really only need to do this procedure once, as ... | stackexchange/codereview |
How can I look for an instance for certain file extensions, like .(jpg|png|css|js|php), and if there is NOT a match send it to index.php?route=$1.
I would like to be able to allow period's for custom usernames.
So, rewrite http://example.com/my.name to index.php?route=my.name
Current setup:
.htaccess:
<IfModule mod_rew... | stackexchange/codereview |
So I have an ASP.NET web site (not web application) I'm making in VS2010 with C#. It runs fine on my machine, but when I upload it to the site it's hosted on, it won't compile, giving: "CS0246: The type or namespace name 'DataAccess' could not be found (are you missing a using directive or an assembly reference?)"
I've... | stackexchange/codereview |
I am flipping over to an info view on the backside. I have it flipping, and I have a navigation bar on the other side to get me back home to the original view (which was a problem when I was trying to use a modal).
My problem now is that it only works the first time: I tap the info button, I flip to the backside. I ta... | stackexchange/codereview |
Given:
http://something.com:4567/data/21/28/188
How do I get only the following with JavaScript?
http://something.com:4567/
| stackexchange/codereview |
I created a class that does some file parsing for me. I made it possible to be started as a standalone application, taking file name from command line.
Now I created another class, that needs to take advantage of what the first class is doing, and I tried to call its main method like this:
className.main(new String[]{"... | stackexchange/codereview |
I want to set the environment variable long based on the size of the XML data I'm trying to retrieve. The idea is something like this:
var XML_DATA_SIZE number;
SELECT TRIM(LENGTH(xmltype.getClobVal(xml_data)))
INTO :XML_data_size
FROM xml_tab
WHERE key = '1234';
print XML_DATA_SIZE
set long XML_DATA_SIZE
set... | stackexchange/codereview |
Is there a way to get the host name using CURL, or what is the preferred way using PHP?
| stackexchange/codereview |
I am looking to inset the contents of an NSTableView so that there is a gap between the top of the table view and the first cell.
On iOS this is easy with UITableView - achieved by using setContentInset:.
| stackexchange/codereview |
Is it possible to check the minor version number of GCC in cmake?
I want to do something like this:
If (GCC_MAJOR >= 4 && GCC_MINOR >= 3)
| stackexchange/codereview |
In the past I have used PCS to update Swing elements that displayed certain fields and everything worked as expected. However, I am now facing a relatively complex (in other words, terribly designed) UI that displays a lot of fields. Data updates come in bunches (a network packet containing new values for about 1,000 f... | stackexchange/codereview |
I am trying to lean Bash scripting from cygwin. When i manually type the following lines in command prompt, everything works and I see that the number from 1 to 10 are printed on the screen.
for i in {1..10}; do
echo $i;
done
However, if I save the script into a file (test.sh) and run "./test.sh", I was shown the ... | stackexchange/codereview |
i couldn't find anywhere if vlad it's compatible with Rails 3, but i tried to deploy a new rails 3 app that we're developing and always returns the same error:
Error loading vlad: no such file to load -- vladrake aborted!
Don't know how to build task 'vlad:init_setup:production'
I'm using ruby 1.8.7 (2010-08-16 patchl... | stackexchange/codereview |
I have an Excel worksheet with information in a format much like a test:
Choice Chosen Percentage
A
B
C
D
TOTAL
False
True
TOTAL
The Chosen column gives how many times each choice was selected, and the Total row totals for the corresponding question. I need a way to quickly find the Percentage each... | stackexchange/codereview |
i am using:
windows 7
rails 3.0
whenever i try to run rake db:migrate. i get the following error in popup...
This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem.
need help here..
thnx..
| stackexchange/codereview |
I have an existing JSF 2.0 project working on a Tomcat 7.0.4 server. I am trying to add Icefaces 2.0.0 Beta2 to this project. I downloaded the file ICEfaces-2.0.0-Beta2-bin.zip from Icefaces official homepage and followed the instructions described here.
I copied the 4 files icefaces.jar, icepush.jar, icefaces-ace.jar ... | stackexchange/codereview |
I want set another cookie when user login, I use google.appenine.api.users.create_loginurl() to create the login url, it's /_ah/login, how can I extend this handler and add another cookie. The same as logout.
| stackexchange/codereview |
When I work on C currently, I use Xcode and just press Build & Run in the Debugger Console which shows all the program's output.
I want to test iterating through command line arguments now. I tried to fake it with...
int main() {
char *argv[] = {"echo","-n","hello world!"};
int argc = 3;
}
But trying to i... | stackexchange/codereview |
I have a function, which creates some random numerical results. I know, that the result will be an integer in a (small, a - b approx 50) range a, b. I want to create a function which execute the above function let's say 1000000 times and calculates, how often the each result appears. (The function takes a random genera... | stackexchange/codereview |
I am using URLOpenPullStream along with a IBindStatusCallback and IHttpNegotiate callbacks to handle the negotiate, status, and data messages. Problem that I have is when the content is gzip (e.g. Content-Encoding: gzip). The data that I am receiving via OnDataAvailable is compressed. I need the uncompressed data.... | stackexchange/codereview |
Problem context:
1) rcbComboBoxInRadPanel is a Telerik RadComboBox.
2) rcbComboBoxInRadPanel has "OnClientSelectedIndexChange" event which fires "itemSelected."
3) rcbComboBoxInRadPanel is contained a radAjaxPanel called "foo."
4) strSomeOtherRadAjaxPanel names a RadAjaxPanel that exists outside of "foo."
5) $find(st... | stackexchange/codereview |
How do I determine the selected row in a WPF datagrid using C#
| stackexchange/codereview |
A week or so ago someone on StackOverflow asked why their Python code for connecting to an IPv6 link-local address wasn't working, and I replied that since it was a link-local address they needed to add a %en0 (or whatever the desired local-interface-name is) suffix to their target IP address. I thought I knew what I ... | stackexchange/codereview |
I need an embeddable audio player that will play wav files in IE, FF, and Chrome. Converting to mp3 (or any other format) is not an option at this time.
This player should be very simple with only a play/pause button and perhaps a timeline bar that a user could click to go to a specific part of the audio.
There also s... | stackexchange/codereview |
I want a container inside the page to take the whole width of the page and overlayed on everything else, when active. This is what I have currently and its not working as I want:
$(function() {
$('.main a').click( function() {
var href = $(this).attr('href');
$(href).animate({
width: [94... | stackexchange/codereview |
I have just started programming and have taken over someone else's work and they did everything in VB.Net.
How hard would it be to migrate away from VB.Net - all our pages are coded in VB but i'd like to learn C# and then move forward with that.
I use a Mac so it's seems easier for C# to work properly on a Mac
| stackexchange/codereview |
eg. i have records like this in my table.
Name Date Salary
Raja 01/10/2000 5000
Raja 02/10/2000 5000
Raja 03/10/2000 5000
Anu 01/10/2000 3000
Anu 02/10/2000 3000
Anu 03/10/2000 3000
King 01/10/2000 4000
King 02/10/2000 4000
King 03/10... | stackexchange/codereview |
I have the idea that it might be useful to enforce type visibility between namespaces rather than assemblies (internal) in C#.
It would seem that such a concept would assist developers working with a codebase, ensuring the correct types are used in places where another internal type supplying similar functionality is a... | stackexchange/codereview |
I am deploying a Asp.Net MVC 2.0 application on IIS 6.0. When I request any page I get the following error.
Parser Error Message:
Could not load type 'System.Web.Mvc.ViewMasterPage<dynamic>'.
Source Error:
Line 1: <%@ Master Language="C#" Inherits=
"System.Web.Mvc.ViewMasterPage<dynamic>" %>
Line ... | stackexchange/codereview |
i have a standard mouseEventHandler :
a.MouseClick += new MouseEventHandler(labelClick);
where a is a label. the function called on click is like so :
private void labelClick(object sender,MouseEventArgs mea)
{
MessageBox.Show("click on the label");
}
How can i send more information to ... | stackexchange/codereview |
Tried seemingly everything here to get this to work but I keep getting "Keyword not supported" errors for just about every iteration of dsn-less connection strings I can find out there in internet land, two are shown below.
Public cnSystem As New SqlClient.SqlConnection
Public Sub ConnectToSQL()
Dim sConnectionSt... | stackexchange/codereview |
When you scroll, are you changing the position of something?
How can I change the position of the scroll? Specifically to match the cursors movement.
What I want to do is scroll the window when I click and drag with the cursor inside the window.
For example:
I have a 400px by 400px div with a 900px by 900px div inside ... | stackexchange/codereview |
When I go to Help->Check for Updates in Eclipse, it checks all the repositories and says "Nothing to update", but my Eclipse version is 3.5.2.R35... I am trying to install the eclim plugin and that requires Eclipse 3.6.x.
If I install Eclipse 3.6 from the eclipse.org website, would that preserve the plugins and configu... | stackexchange/codereview |
I'm trying to import and export contact on an Android phone as vCards. Export works fine and I get the vCard string.
But how can I insert a contact from a vCard string? I wasn't able to find any sample code.
| stackexchange/codereview |
The question is similar to How do I read a disk directly with .Net?, except that the drive that requires direct access is a CD-ROM or DVD-ROM drive. These drives are not including as a physical drive and cannot be accessed using the DeviceStream class or CreateFile Win32 API method as cited in the topic above.
The Win... | stackexchange/codereview |
I am (after some strangeness with my resources file) able to play a .wav file in my project:
SoundPlayer player = new SoundPlayer();
player.Stream = Sounds.L1;
Player.Play();
This works fine but what I want to do is be able to concatenate a string together and then call the file. The .wav filename would be of the for... | stackexchange/codereview |
I wonder how Blueprint CSS work -- does it use some standard dimensions (such as 24 columns with 40 pixel width, or 20 columns with 48 pixel width), and is there usually a file that specifies the specifics of the blueprint settings?
| stackexchange/codereview |
I created a workflow in a document library. I added a Document set with some documents and then associated a workflow for the document set after which the workflow gets associated for the document set as well as for the documents inside the document set. How do i avoid this. can any one ple help me out.
| stackexchange/codereview |
INSERT INTO sitelist(id,rank,websiteaddress,tag1,tag2,tag3,tag4,tag5,tag6,tag7,tag8,tag9,tag10)
VALUES
('','','','search','searchengine','discover','find','tag5','tag6','tag7','tag8','tag9','tag10') WHERE `id`=1
The thing is that the first row is like this
1 1 google.com nothing nothing etc
I want to insert search s... | stackexchange/codereview |
I have one multprocess demo here, and I met some problems with it. Researched for a night, I cannot resolve the reason.
Any one can help me?
I want to have one parent process acts as producer, when there are tasks come, the parent can fork some children to consume these tasks. The parent monitors the child, if any one ... | stackexchange/codereview |
I have a CGI shell script that download a list of packages. And it prints some information about the process and then starts running it. When complete, it shows the result of the job.
It works perfectly, however, on the browser doesn't show any thing until after the process is complete. Is there some way that tell the ... | stackexchange/codereview |
Does the real and/or imaginary part get multiplied by the same coefficient or does the window frame size have to be doubled?
| stackexchange/codereview |
I know that the C++ standard explicitly guarantees the size of only char, signed char and unsigned char. Also it gives guarantees that, say, short is at least as big as char, int as big as short etc. But no explicit guarantees about absolute value of, say, sizeof(int). This was the info in my head and I lived happily w... | stackexchange/codereview |
I have a small project that I need to compile. I have one header and one source that I have created and a nearly empty driver.c that includes my header.
Observe:
// iol.h
#ifndef __IOL_HEADER
#define __IOL_HEADER
/* program: iol.h
date: 5 October 2010
*/
#define UNIX 1
#define WINDOWS 2
#define OS UNIX
#i... | stackexchange/codereview |
I'm going through the documentation and I'm a little confused as to how memcache does internal load-balancing if multiple servers are specified. For example:
import memcache
mc.set_servers(['127.0.0.1:11211','127.0.0.1:11212',])
mc.set("some_key", "Some value")
print mc.get("some_key")
Will the setting and retrieval ... | stackexchange/codereview |
i am using twitter + oauth for twitter integration in iphone. when i run the app. i got message such as "sorry that page doesn't exist!" even though i am using following things.
self.requestTokenURL = [NSURL URLWithString: @"http://twitter.com/oauth/request_token"];
self.accessTokenURL = [NSURL URLWithString: @... | stackexchange/codereview |
Hi all
i'm developing an application must show a list of customers, resellers and other types of data an ao geographic map (from satellites) or on a road map for an university's exam.
With this application i've to calulate the isodromi distance and the street route, where possible, from a source and a destination.
I lo... | stackexchange/codereview |
How can I disable PXE network booting through vSphere on a virtual machine running on VMware ESXi 4.1.0 as host?
| stackexchange/codereview |
I am developing smart gwt application, As per smart FAQ we have to give smart gwt component height, width in pixels.
Giving size in pixels will not behave uniform in all resolutions.
Can anybody tell how to make it resolution independent? so it behave uniform in all resolutions?
Thanks,
Punam Purohit
| stackexchange/codereview |
I connect a ıp cam(jpeg), and show this image, and ı repeat continually, After a while my app error this. And I tested other phone and showed this one.
10-28 15:12:51.525: ERROR/AndroidRuntime(675): Uncaught handler: thread Thread-11 exiting due to uncaught exception
my codes:
public void parse(InputStream is){
tr... | stackexchange/codereview |
I have an implementation of a custom DataObject (Virtual File) see here. I have drag and drop functionality in a control view (drag and drop a file OUT of a control view without having a temp local file).
This works fine with smaller files but as soon as the file is larger than say 12-15megs it says not enough memory ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.