instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a ListView and each item contains a TextView displaying a number. I'd like to give my users the ability to change this number while staying on the ListView (as opposed to drilling down into a detailed view by clicking on the list item).
What I'm looking to do is to slide in a layout from the bottom of the scree... | stackexchange/codereview |
How can I find changesets in Branch A that were not merged to branch B programmatically.
This what Merge Window does in TFS client GUI but I need to programmatically get the list of changesets.
Say I have Microsoft.TeamFoundation.VersionControl.Client.Workspace reference.
| stackexchange/codereview |
I am working on a project. For that i have downloaded smtp server on ubuntu. Could any one please tell me the command to check whether the smtp server install properly or not. because email is not getting generated.
Below is the code for your reference
<?php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT)... | stackexchange/codereview |
I realize this is way too far into the micro-optimization area, but I am curious to understand why Calls to DateTime.Now and DateTime.UtcNow are so "expensive". I have a sample program that runs a couple of scenarios of doing some "work" (adding to a counter) and attempts to do this for 1 second. I have several approac... | stackexchange/codereview |
I am new to Crystal Reports. I want to make a connection to an Informix database. Can anyone help? Connection to Oracle may also help.
| stackexchange/codereview |
Our team has developed the Tool which is used to find the reference's of a Changed method in a Project.
1.We used reflection to read the Namespace,Class Name and Method name's e.t.c.
2.We started to search the method'sbody in cs file's and we stored in a List.
3.We have taken each and every method for finding the Refe... | stackexchange/codereview |
This is about the internals of git.
I've been reading the great 'Pro Git' book and learning a little about how git is working internally (all about the SHA1, blobs, references, trees, commits, etc, etc). Pretty clever architecture, by the way.
So, to put into context, git references the content of a file as a SHA1 valu... | stackexchange/codereview |
I've two NSOutlineViews shown side by side they contain the same number of rows (this is a prerequisite) and I need to synchronize them when user scrolls using mouse, keyboard or scrollbars so I see the same view portion (or rows).
I'm a newbie in the Cocoa land and I'm unable to find how this can be accomplished
| stackexchange/codereview |
I'm trying to hit my intranet website and get it to run a simple sql query as the windows user I'm logged in as.
When I debug through Visual Studio, everything works great. When I hit the webserver though, I get an error from sqlconnection saying, "ERROR:Login failed for user 'YOUR_DOMAIN\YOUR_WEBSERVER_NAME'."
Request... | stackexchange/codereview |
I have been studying the Upgrade header field in HTTP 1.1 (RFC 2817) and happened to read the wikipedia entry for HTTP. That article has the following statement:
"Browser support for the Upgrade header is, however, nearly non-existent, so HTTPS is still the dominant method of establishing a secure HTTP connection."
... | stackexchange/codereview |
i am building some sort of content system.
anyway i have a database with 3 tables
lets say one is for news and the others for articles and stories.
now i want to make a service which backups only articles who are going to get edited.
anyway i want all the logic in the asp.net and not in the database itself.
anyway my p... | stackexchange/codereview |
I have a simple .NET 4.0 web forms app that references the Microsoft.ReportViewer namespace:
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
with a simple ReportViewer control on a... | stackexchange/codereview |
Since I updated to ASP.NET MVC 3 Beta 1, I get a NullReferenceException whenever I call TryUpdateModel() during a unit test session.
The stack trace looks like this:
Execute
System.NullReferenceException: Object reference not set to an instance of an object.
at System.Web.Mvc.JsonValueProviderFactory.GetValuePr... | stackexchange/codereview |
I have an xml like this
<?xml version="1.0" encoding="utf-8"?>
<xml>
<item>
<accountid>1</accountid>
<accounttypeid>1</accounttypeid>
<accounttypename/>
<accountbankid>1</accountbankid>
<accountban... | stackexchange/codereview |
I used Oracle Analytics for SQL. Is something like that available in SQL Server 2008 Express and Compact?
| stackexchange/codereview |
I'm developing an Android app for which we will be selling separate content in the Android Market. Since Android lacks an in-app purchasing model as iOS has, I have come to understand that this is the ideal way of selling additional content (but NOT functionality) for Android apps.
So the question is, how do I actuall... | stackexchange/codereview |
I have a card game in java.
I would like to play a sound effect whenever i mouseOver the card. But at the same time, the card will be "popping up".
However, when i tried to implement it by the run() method, it gets laggy, that is to say, the cards do not pop up as quickly as it would without the sound.
thus i created a... | stackexchange/codereview |
UPDATE: I've moved on, not looking for an answer
UPDATE: See the last update below.
I'm doing a POST request using JQuery's jQuery.ajax() function and when the outgoing Content-Length exceeds 3508 bytes something goes wrong and no response is returned. As long as the Content-Length remains under 3509 bytes everything w... | stackexchange/codereview |
I have a gridview that contains data. I want the user to be able to toggle certain data, which will trigger an event to the database.
I have implemented this, with a single check box column that toggles information for a row at a time.
however, I now have the need to be able to toggle specific columns within each ro... | stackexchange/codereview |
I'm working on a stored procedure. I have a table called #CashFlow that contains data for a span of time.
FundID TradeDate Amount
1 1/1/2004 123.00
1 6/30/2006 100.00
2 1/1/2004 100.00
2 3/15/2010 150.00
3 1/1/2010 100.00
I also have a table called #Funds which contains a l... | stackexchange/codereview |
XCode: "This template provides a starting point for an application that uses a single view. It provides a view controller to manage the view, and a nib file that contains the view."
What does that even mean? (ie what does Single view actually mean)
1) This means that your application will only have a single view screen... | stackexchange/codereview |
I've been updating from the SVN repo from the main page, but also found the GIT repo on github.
Are they connected or should I use one more than the other?
Where is the fpbuild and fpprojects on github that exist on the SVN repos?
Cheers.
| stackexchange/codereview |
In a recent interview I was asked to decipher this regex
^\^[^^]
Can you please help me with it. Also please provide some links where I can learn regex for interviews.
| stackexchange/codereview |
I'm developing an application that is showing the iPhone contacts.
The ABAddressBookRef returns duplicate entries for a contact that appears only once in the iPhone contacts application.
Looking on the contact card (from the iPhone contacts), in the bottom there is a section called "Linked Contacts" so obviously apple... | stackexchange/codereview |
i have build program that can open *.sdf files and show all the table & the data.
how to force that any *.sdf file in my computer will open with my program ?
thank's in advance
| stackexchange/codereview |
I want to ask a question about the html code. I have a input type="text". And I have added the auto-complete function in the text box (like the google suggestion list). However, when I click the text and start the to type the text, it display 2 auto-complete function.
browser e.g. like you type your account in the bro... | stackexchange/codereview |
I have my own BroadcastReceiver instance for Intent.ACTION_HEADSET_PLUG action. There is about 1-2 seconds delay between actual physical unplugging a headset and a moment when my BroadcastReceiver is notified about that.
IntentFilter filter = new IntentFilter(Intent.ACTION_HEADSET_PLUG);
filter.setPriority(IntentFilter... | stackexchange/codereview |
I've always worked with web application and that's what I like to do.
For my OOP course my professor decided to "impose" me the use of Java. I've always used java to make console application so that's not a problem.
What is the problem? The problem is I've never developed a GUI for desktop application so I was looking... | stackexchange/codereview |
If you make a call script in the construction of <head> - then it works, but if its cause in the construction of <body> - it does not work: (
Work:
<html>
<head>
..
<script type="text/javascript" src="../js/fullcalendar.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var date = new Date(... | stackexchange/codereview |
I am currently coding a very large project, I am near the end of the development stage and have sent out an evaluation version to the consumer so he can check for bugs and what not.
He told me that there was a large log file being created every time the application starts up.
After some investigation I found out that t... | stackexchange/codereview |
I am using Zend_File_Transfer_Adapter_Http for uploading Images. I need to set maximum size of uploading images to 300*300.Is there any solutions in Zend_File_Transfer_Adapter_Http class.Please help me.Already browse for solution; but nothing helps.
| stackexchange/codereview |
What I'm looking for is to return some estimate of row count, instead of the actual count which can be an expensive call. Similar to what you see in google search (... of about 1.000 rows).
Are there some out-of-the-box solutions for this? If not, what's the general approach?
I'm querying Sql Server 2008 database.
EDI... | stackexchange/codereview |
When I run unit tests via mstest.exe, the test results folder contains .pdb files. These files are not supposed to be there as they interfere with the automated build system. Is there any way to prevent those files from being generated?
| stackexchange/codereview |
I have a Qt dialog box with several controls that need more or less uniform processing. I want to store pointers to them in an array and enumerate over them.
In Windows, I'd use sequential control IDs and GetDlgItem(hDlg, IDC_BASEID + i) in a loop. In Cocoa, i'd use sequential view tags or include them in an invisible ... | stackexchange/codereview |
I have got a page on a website, that works similar to a reverse auction. It has a javascript countdown timer that runs down depending on how long the auction is. When it hits zero the auction ends and page refreshes.
All works like a dream, but the problem is if a bid is put in I wanted the page to refresh displaying... | stackexchange/codereview |
I'm trying to understand the role of the GetHashCode method of the interface IEqualityComparer.
The following example is taken from MSDN:
using System;
using System.Collections.Generic;
class Example {
static void Main() {
try {
BoxEqualityComparer boxEqC = new BoxEqualityComparer();
... | stackexchange/codereview |
In WF4 custom activities, I understand you can add warning of validation error by checking some condition and add validation error, ex
if(Arg == null)
metadata.AddValidationError("Null argument");
in CacheMetadata(metadata)
My question if what if you want to check the content of the argument itself,
for example you wa... | stackexchange/codereview |
I was wondering about something. Lets say I have this piece of code:
if (cbBackup.Checked)
{
log("Making backup, this might take a while..");
SqlCommand comm = new SqlCommand(GetFromResources("databaseInstaller.qry.backup.sql"), conn);
}
SqlCommand comm = new SqlCommand(GetFromResources("databaseInstaller.qry... | stackexchange/codereview |
I want to display a progressbar, and during this time it's get items and when it's finished geting all the items, it will show the list.
How is this possible?
| stackexchange/codereview |
I need to generate a 4 digit random number in C++
I used the following code
#include<time.h>
int number;
number=rand()%1000;
srand ( time(NULL) );
but its doesn't gives a total random number
| stackexchange/codereview |
hi all when I am writing
mysql -u root
i am getting :
ERROR 2002 (HY000): Can't connect to local MySQL server
through socket
'/var/run/mysqld/mysqld.sock' (2)
what to do next ?I am in ubuntu.
| stackexchange/codereview |
I'm putting together user pages based on the username in the URL. for example blank.com/username
I was able to get a script to get the user name:
$pageName = basename($_SERVER["REQUEST_URI"]);
now, when you got to blank.com/username it obviously takes you to a page that doesn't exist. how do I redirect to the page the... | stackexchange/codereview |
I would like display text and an image in a Silverlight 3 datagrid (i.e. First name, last name, picture). There were many examples on the web utilizing DataTemplate and RowDetailsTemplate in XAML. However, I need to do this all through C# code. Any examples would be highly appreciated.
Thanks,
Sam
| stackexchange/codereview |
I had asked a couple of question about multilanguage in asp.net and I am very grateful because the answers have been of much help.
I now face another problem.
I have the page directive:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
CodeBehind="Galeria.aspx.cs" Inherits="Terap... | stackexchange/codereview |
I'm using the default xslt template for navigation, everything was working fine until I tried to change the default url for a menu item. Then I deleted the Umbraco Url Name field, but the item keeps showing up twice on my web site. Even though it only shows up once in the backoffice. I unpublished it, and it only showe... | stackexchange/codereview |
I'm developing (in Java), for fun, an application which uses an unification algorithm.
I have chosen that my unification algorithm returns all the possible unifications. For example, if I try to solve
add(X,Y) = succ(succ(0))
it returns
{X = succ(succ(0)), Y = 0}, {X = succ(0), Y = succ(0)}, {X = 0, Y = succ(succ(0))}... | stackexchange/codereview |
I have a system with a number of base station beacons, each broadcasting an infinitely fast signal describing their position on a 2D Cartesian plane. The signal strength begins with a [unitless] power of 1.0, with the strength degrading over the distance d according to the following formula:
1
--------
4... | stackexchange/codereview |
I have some images designed for portrait mode of iPad . they are designed to cover full screen, now when i rotate the ipad to landscape I adjust the imageview's frae to cover ipad screeen in landscape mode, but that abruptly disturbs the aspect ratio and scale of image , How can i resize the image preserving the aspect... | stackexchange/codereview |
I wonder how to translate this sql query to use the Criteria API. If not possible or not easy, HQL would be OK
SELECT * FROM Table1 WHERE Field1 in (1,2,3,4,5,6)
(1,2,3,4,5,6) is an external dynamic array that I set to the query as parameter, it's not a constant.
| stackexchange/codereview |
I'm running my Standalone Intraweb App as a service. Now i need to implement a function that writes
a "heartbeat" timestamp to a database table. I've done this in other service app that uses
the TService Classm where i can use Events like OnAfterInstall, OnExecute etc.
Is there a way i can use that events in a standalo... | stackexchange/codereview |
i am trying to catch the dargOver and dragDropped event on canvas.. for titlewindow. but moving title window over the canvas does not fire these two events ? is there any solution ?
| stackexchange/codereview |
I'm working with Visual C# 2010 Express, building managed applications.
In 'release' mode, Visual Studio generates an assembly (dll or exe) as well as an XML file containing assembly method comments.
In 'debug' mode, it generates the assembly and a PDB file (containing debug information).
Since I build everything in ... | stackexchange/codereview |
What other options currently exist for parsing html in F#? Currently have some regular expressions but would prefer something like Pythons Beautiful Soup http://www.crummy.com/software/BeautifulSoup/ or be able to using an api similar to jQuery from F#.
I have seen the fslex and fparsec but I'm not sure if someone else... | stackexchange/codereview |
I want to create a google maps app with kml, and i want to create the kml file dynamically depending on the zoom of the user.
Something like google earth but in google maps (the zooming part)
I tried to use the markermanager and clusterer but i have too many markers and performance on mobile devices is very bad but wit... | stackexchange/codereview |
I'm having trouble catching what I'm doing wrong inserting strings into an array in C. Below is the code. The printf lines show me that I am indeed reading the correct data -- but after I stick each line of data into an array -- I then inspect it to find that every element of the array is filled with the last line pu... | stackexchange/codereview |
I want to take my website down for an hour while I make changes and I have used
order Deny,Allow
Deny from all
Allow from my.ip.add.ress
How do I redirect users that are not on my ip to a page rather than just given an bog standard apache error page? I want something prettier.
| stackexchange/codereview |
Does Tkinter provide a way to temporarily turn off screen updates (when performing a large amount of screen activity) and then turn on screen updates when the UI updates are complete? Many GUI frameworks have this feature. wxPython provides Freeze and Thaw methods for this functionality. The Windows Win32api supports t... | stackexchange/codereview |
I've seen examples with text files but is saving an audio file directly to a server done the same way with URLConnection?
| stackexchange/codereview |
I am working on an external sorting algorithm that uses std::queue and must carefully constrain its memory usage. I have noticed that during the merge phase (which uses several std::queues of fixed length), my memory usage increases to about 2.5X what I expected. Since std::queue by default uses std::deque as its und... | stackexchange/codereview |
I have an image upload form that takes a title and a file for its field. I have two uses for it. Most of the time I call it, I need both a title and the image itself. But when I call it simply to grab a thumbnail, I don't need the title. In fact, the form data is saved to a different model that doesn't even have ti... | stackexchange/codereview |
?-mod5(X,[a,16,b,c(5),[[12]],8]).
X = [a,1,b,c(5),[[12]],3].
A non-integer should remain untouched. However, in the case of [[12]], since 12 is the ASCII value of "\f" (form feed), it outputs [["\f"]] when what I want it to output [[12]] as is. How can I prevent this?
| stackexchange/codereview |
Is there a free web based html5 document viewer?
| stackexchange/codereview |
How can I apply a style to all the dialogs without creating my custom implementation of the various dialog windows ?
I want to override Theme.Dialog
My ultimate goal is to change the color of the title bar for every popup in the application.
| stackexchange/codereview |
I have a Core Data migration that introduces 2 new entity types. The migration works without issue, but I want to populate the database with default data after the migration.
Currently, my approach is to define a custom NSEntityMigrationPolicy and override endEntityMapping:manager:error:
- (BOOL)endEntityMapping:(NSEnt... | stackexchange/codereview |
I'm (ab)using Mercurial to manage thousands of files that change often, but I'd like to be able to view the log (hg log) without having my term filled with all of the filenames that changed on each commit. hg log -q is a little too quiet, since I need to see the descriptions. Is there a flag I'm missing for hg log?
| stackexchange/codereview |
I'm trying to decide between Freemarker and Velocity to use as a template engine, any advantages/disadvantages you see regarding each?
Any alternatives that I should look at instead?
| stackexchange/codereview |
We're using GWO (Google Website Optimizer) now. The multivariate and A/B testing is exactly what we need and works great from the perspective of showing the variations to the users. However, we have several issues that make me want to use a different tool:
Statistics are inaccurate compared to Google Analytics, so w... | stackexchange/codereview |
i'm programming in QT. I encountered a problem. i would
like to activate adjustsize() for a layout from the cpp
file. i can't find the function, which exist on the designer.
designer screenshot:
cpp:ui->gridLayout->no matched function!!!
| stackexchange/codereview |
Hi lets say I have an property path looking like this
We can say that I have an article that has an Vat and Vat has an Value.
Now I want to use Linq to sort a list using that property path
How can I build that lambda expression when I have "Vat.Value" in a string and I want the following result
list.Order(x => x.Vat.Va... | stackexchange/codereview |
So apparently, you can install both 32bit and 64bit compiled applications on a 64bit Windows system (Vista or 7).
What's the reason why both versions are able to run on the 64bit OS? Is it good practice to install 64bit apps on 64bit OS? Any advantages/disadvantages to combining 32bit apps with a 64bit OS?
Thanks!
| stackexchange/codereview |
I have a dynamically generated variable that contains the currently selected city by the user. The format of the string is exactly the same as the href in the navigation menu below except without the prefix /city/.
Example:
$user_city = 'london';
$user_city = 'edinburgh';
...
I have the navigation menu below a... | stackexchange/codereview |
I am trying to pull a .jpg image off of a server, and display it as and EncodedImage in a ZoomScreen. Because this .jpg could be very large I want to save the .jpg to a file and read it from there so i don't have the whole thing sitting in memory.
The problem I'm facing is that Connector.open("http.url.com/file.jpg") i... | stackexchange/codereview |
I am trying my hand at a bit of C. And I thought I had understood this linking business. But I guess not. I have a simple file main.c:
#include "function.h"
int main(char args[])
{
int print = myfunction();
}
then a second pair of files function.c/function.h
int myfunction(); //function.h
int myfunction() //func... | stackexchange/codereview |
got a question regarding serializing classes that I've defined. I have some classes like
class Foo:
def __init__(self, x, y):
self.x = x, self.y = y
def toDict(self):
return dict(Foo = dict(x = self.x, y = self.y))
then a class that can contain multiple Foos, such as:
class Bar:
def... | stackexchange/codereview |
I wrote a simple application using GLUT that I'm porting to SDL now to turn it into a game.
I am having a bizarre issue specifically with using glDrawElements and Vertex Buffer Objects, SDL 1.2.14 OSX. If I don't use VBO's the program runs fine. It only throws a "EXC_BAD_ACCESS" when using VBO's. To make the matter mor... | stackexchange/codereview |
If you hate the ternary conditional operator in the first place, there's no need to reply ;)
I usually see this used in tandem with an assignment expression like:
var foo = (some_condition) ? then_code : else_code;
However, I'd like to use it to replace simple code like:
if(some_condition) {
do_something_simple;
} e... | stackexchange/codereview |
You'll need Opera 9.62 to see what this is all about... Because that is the only browser that behaves strange when I do cross-sub-domain JavaScript calls (with Ajax involved). Please consider the following three simple files and place them at appropriate domains.
foo.html (parent of boo.html iframe) at foo.example.com... | stackexchange/codereview |
I have an assignment to write an algorithm (not in any particular language, just pseudo-code) that receives a matrix [size: M x N] that is sorted in a way that all of it's rows are sorted and all of it's columns are sorted individually, and finds a certain value within this matrix. I need to write the most time-efficie... | stackexchange/codereview |
I have a view that is outputting a list of questions(yesno and multiple choice). For the Multiple Choice questions, I want to also pass the possible multiple choice answers but I can not figure out how to pass 2 queries. Is there a way to do this or is it better handled another way?
Controller Code:
public ActionResu... | stackexchange/codereview |
I'm developing an iOS application that needs to deploy to iOS 3.1.3. I need to extend some of the functionality of the NSData class and am using the following code inside NSData+Base64 (truncated to show the interesting part):
NSData+Base64.h
[...]
@interface NSData (Base64)
+ (NSData *)dataFromBase64String:(NSString... | stackexchange/codereview |
I am using Advanced Installer (MSI) to install a shell extension DLL for an explorer context menu. This works except on Uninstall Custom Action in InstallExecuteSequence I had to add a command to regsvr32.exe /s /u in order to de-register the DLL.
The problem I have is that upon subsequent re-installs of the same produ... | stackexchange/codereview |
I am using Jcrop jquery plugin, and triggering the initJcropBox() function on onload event.
but this function is being triggered before the image is fully loaded. which is causing problem. such as showing incorrect size of jcropbox or not showing jcropbox at all.
when i place a line, it works fine. but is not a solut... | stackexchange/codereview |
I'm looking for a java class to parse all HTML special characters.
I guess it's a common problem but i cannot find a fast solution right now.
What i wanto to get is:
input: thè --> output: thè
input: »
input: &lraquo;
...
Do you know anything useful for me?
| stackexchange/codereview |
I'm wondering if there is any difference between div.class and .class as CSS selectors if there is only one tag (the DIV) with that attribute. Same thing for IDs: div#ID and #ID.
Any idea what, if anything, is the difference? For me, I use the class or ID in these situations; but only because it's quicker to type.
| stackexchange/codereview |
Can XHTML and HTML class attributes value start with a number?
| stackexchange/codereview |
Say I need to develop a online cheese games and the game is just between computer and a real human player.
The req is to keep states (like steps,win history) usable even after the user closing browsers or server temp being offline in short time. Thus when the player goes back to the game page, he should be keep play... | stackexchange/codereview |
I have the following structure:
$text_1 = $this->getValue('value_1');
$text_2 = $this->getValue('value_2');
$text_3 = $this->getValue('value_3')
And also the following:
foreach($text_1 as $t_1)
{
if(!$first)
{
$string_1 .= ",";
}
$first = false;
$string_1 .=... | stackexchange/codereview |
After following the suggestions outlined on their website on how to set up buildbot on windows, I'm left with one last question - I have multiple slaves and one master all set up on one computer (they're all demo slaves right now, doing simple things - later on when we split some of these off to their own machines this... | stackexchange/codereview |
Suppose I have classes Animal, Cat and Dog. Cat and Dog are inherited from Animal. Consider following code:
var query = from animal in session.Linq<Animal>()
where
animal.Color == "White"
select animal;
How can I add a criteria to above query to query about type of entity? For exam... | stackexchange/codereview |
I'm converting an algorithm from C# to C++. A small part of the algorithm is to calculate average values for certain areas in a dictionary.
The data in the dictionary is stored in the following way:
Index Value
1 10
3 28
290 78
1110 90
I need to calculate the average value of all values ... | stackexchange/codereview |
I have two PHP files, which are run for a long time (no execution limit). One of the files is used to checking some data on remote server. To make it more effective I run a few instances of file #1. The second file is supposed to perorm action, once a valid response is received by any of the files #1.
The question - h... | stackexchange/codereview |
I have lots of dates in a column in a CSV file that I need to convert from dd/mm/yyyy to yyyy-mm-dd format. For example 17/01/2010 should be converted to 2010-01-17.
How can I do this in Perl or Python?
| stackexchange/codereview |
I really like the application Things but I need something web-based. Ideally something I can host on my server. So simply, PHP/MySQl based task-management software, which is open-source.
What would be ideal would be something where I can drag and drop to reorder the tasks.
Any suggestions?
| stackexchange/codereview |
I just have a quick question. I need to override the operator >> for a custom String class and I can't quite figure out how to do it.
I know that this code works, because it was my original method of solving the problem:
istream& operator>>(istream &is, String &s) {
char data[ String::BUFF_INC ]; //BUFF_INC is prede... | stackexchange/codereview |
We ran into an interesting problem today. It seems that if you use the shovel operator to concatenate a string attribute on an ActiveRecord model, it doesn't make the model dirty. For example:
e = Employee.first
e.name << "asdf"
e.name_changed? # returns false
e.changed? # returns false
This makes sense since the sh... | stackexchange/codereview |
This has been plaguing me for a few days now. Any time I try to use a breakpoint to debug into anything other than an activity (background service, broadcast receiver, input method) my breakpoint will be hit normally, but then about five seconds later the device will terminate the process and disconnect from the debugg... | stackexchange/codereview |
There are many people that mark closing tags like this to help identify the closing tag that goes with an HTML tag:
<div id="header">
<div id="logo">
<a href="index.php">
<img id="logoimg" src="images/as_logo.png" alt="Logo" border="0" />
</a>
</div> <!-- logo -->
</div> <!-- header -->
I was wonderi... | stackexchange/codereview |
Hey has anyone ever used the API for face detect in their android program?
More simply stated, can I have a java class that pulls up the camera, scans a person's face and returns parameters back into the program?
Thanks for any help!
| stackexchange/codereview |
I'm working on my portfolio, and I'm making it all on one page, javascript based. My problem is, if I load in a different page, the div containing the content of the page doesn't resize.
http://portfolio.theadamgaskins.com/Portfolio/ Click "Death Worm" to see what I mean.
So, how do I make a div resize vertically to fi... | stackexchange/codereview |
I was reading about Action Delegate on MSDN and so this under syntax
public delegate void Action<in T>(T obj);
Than I looked in c-sharpcorner.com and it used this syntax
public delegate void Action<T>(T obj);
As you can see there is no in before T.
Which syntax is right and what does that in mean?
EDIT: The... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.