instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm making an app for windows phone 7 (using Visual Studio 2010 Express for Windows Phone RTM), and i'm having some problems regarding theme (light/dark) awareness especially with colors.
Basically i want to do the same thing that the phone does internally when using the staticresource colors/brushes.
For example, if i... | stackexchange/codereview |
Is there an OAuth wrapper library for Scala?
I am looking forward to work with my del.icio.us (authenticated via Yahoo account, so I am going to need OAuth) bookmarks base from a Scala code. Is there a wrapper library out there?
| stackexchange/codereview |
Is it possible to tag friends somehow using the Facebook fb.api (JavaScript SDK) call?
By tagging I mean what happens when you use "@" in the regular facebook.com UI.
| stackexchange/codereview |
I am trying to create a folder and several subdirectory within it on the SD Card... I then want to transfer files that I have stored in /res/raw to that folder... I addition, I want this to only happen once, the first time the program is ever run. I realize that this is ridiculously open-ended, and that I am asking a l... | stackexchange/codereview |
I have an application which I wrote which used to work perfectly fine. There is new requirement that all data needs to be encrypted now, so I implemented encryption by making all my core data fields type transformable and writing custom transformers for each data type which encrypts/decrypts each element of data as it ... | stackexchange/codereview |
I'm potentially interested in using hierarchical temporal memory model to solve a research problem I am working on.
Are there any open source libraries for this? I'm fairly open to languages, although C++, Java or Haskell is preferred. If yes, has anyone had any experience with them?
| stackexchange/codereview |
I have a C++ code that can be compiled with MPI support depending on a
certain preprocessor flag; missing the appropriate flag, the sources
compile to a non-parallel version.
I would like to setup the Makefile.am so that it compiles both the
MPI-parallel and the sequential version, if an option to
./configure is given.... | stackexchange/codereview |
I'm pretty new to java programming and am looking to do basic data mappings. I have a ListView object with a simple data array setup like this:
setListAdapter(new ArrayAdapter<String>(this, R.layout.my_list_xml, MY_DATA));
What I want to happen is when you click an item it goes to it's subcategory. I'm not worried a... | stackexchange/codereview |
I am working on a project where we are passing encrypted data between C#, Java and ColdFusion applications. To generate the key and iv for 256 bit AES encryption. I have the following array which I need to convert in ColdFusion 9 to useable key
The Java Code for the Key
new byte[]{
(byte)172, (byte)181, (... | stackexchange/codereview |
Is it possible to get places by latitude/longitude and radius using the Graph API (or by address/zip)? I don't see it anywhere in the documentation
| stackexchange/codereview |
I've made some iphone webapps before, using jQTouch and iUI but now i want to try out making a native Apps for iPhone. As i first step i thought of trying to port one of my webapps using Phonegap. So far it works well, but i'm a little concerned about some things in the Apple Review Guidelines and wanted to see if anyo... | stackexchange/codereview |
I'm having problems with my include files. I don't seem to be able to figure out how to construct my URLs when I use require_once('somefile.php'). If I try to use an include file in more than one place where the directory structures are different, I get an error that the include file cannot be found.
In asp.net, to get... | stackexchange/codereview |
So, I said this might be possible to my client, and i said I'd research it and let him know. Anyways, with JS or a CSS hack, is it possible to make text stretch 100% of the window? What i mean by this is, how can I make the title of his site, no matter the window size, fit exactly 100% inside the window by dynamically ... | stackexchange/codereview |
I'm checking a simple moving average crossing strategy in R. Instead of running a huge simulation over the 2 dimenional parameter space (length of short term moving average, length of long term moving average), I'd like to implement the Particle Swarm Optimization algorithm to find the optimal parameter values. I've be... | stackexchange/codereview |
Right now I'm having an issue with a Singleton that I just wrote for use in ASP.NET MVC -- My Singleton looks like this:
public sealed class RequestGenerator : IRequestGenerator
{
// Singleton pattern
private RequestGenerator()
{
requestList = new Stack<Request>();
appSettings = new WebAppS... | stackexchange/codereview |
I'm having a CSS issue that only occurs in Safari and Chrome. I have a set of styles for links in the content of a site that I'm working on. Visited links should appear a different colour and with a dotted bottom border. In Safari and Chrome the visited links lack the bottom border though, although all other styles are... | stackexchange/codereview |
I need to load a Money value in a variable in SSIS using a "Execute SQL Task" component.
I map the return column of a SELECT to a variable.
I've declared the variable "UnknownMoney" as a Double or a Single, but i always receive the error:
Error: 0xC002F309 at Load Dummy vars, Execute SQL Task: An error occurred while a... | stackexchange/codereview |
We found some code being inserted into emails sent by our proprietary email system and have no idea of its provenance.
My company sends a lot of bulk email for clients. (We follow all the best practice protocols to ensure we're not spammers.) The system is proprietary, based on open source code. Customers have a GUI ... | stackexchange/codereview |
I have a application where I want to show different locations (one at the time, picked by user input) by launching Google Maps with their specific geo coordinates.
I'm currently using this (with real lat. and long. values of course):
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("geo:<lat>,<long>?z=17"));
st... | stackexchange/codereview |
I am new to git (been using svn and mercurial for awhile). Is there a way to 'tag' my git repository? Something like tagging it "version 12, removed red square.". I'd like to pull the source state at the time the tag was added, if I ever need to revert to a known snapshot of the code. Is it possible? Would be cool, if ... | stackexchange/codereview |
I have a while loop of a mysql call but I also am trying to run another mysql query inside of the while loop but it is only doing it once. I can not figure it out.
Here is my code:
$sql = "SELECT * FROM widget_layout WHERE module_id=".mysql_real_escape_string($id)." AND state='".mysql_real_escape_string($page)."' AND p... | stackexchange/codereview |
Does anyone know of a resource for Criteria Queries in NHibernate that demonstrates complex criteria restrictions.
For example
select rows in the parent table and
only rows in a child table that match
a criteria
set eager fetching on parent and
child in the criteria
i.e. not just simple criteria, but something a bit ... | stackexchange/codereview |
Why is the process of balancing to get an AVL tree called rotation? (While you are at it, what's single & double rotation?)
Every textbook of mine blatantly uses that word without any explanation.
| stackexchange/codereview |
I'm working on a web application and I went through the necessary steps to enable HTML5 App Cache for my initial login page. My goal is to cache all the images, css and js to improve the performance while online browsing, i'm not planning on offline browsing.
My initial page consist of a login form with only one input... | stackexchange/codereview |
I'm doing ray picking to find the scene node that my cursor points at. All of those scene nodes are equally sized cubes. I have the hit scenenode's position, the position of the ray intersection and the triangle that the node/mesh that were hit. What i want to do is to attatch a new block to the face of the collided sc... | stackexchange/codereview |
I have a dataset that includes a list of species, their counts, and the day count from when the survey began. Since many days were not sampled, day is not continuous. So for example, there could be birds counted on day 5,6,9,10,15,34,39 and so on. I set the earliest date to be day 0.
Example data:
species counts ... | stackexchange/codereview |
Is it possible to change the value of a public property (type string) of a class within a given .NET AppDomain from another separate .NET AppDomain assuming both AppDomain's are running in the same process. The other important assumption is that the code running in the AppDomain that contains the property can not be m... | stackexchange/codereview |
we are facing the following problem and we are trying to come up with the best possible solution.
We are using SQL Server 2008. We have a table that has more than 600 millions records, and has about 25 columns. One of the columns is an ID and is indexed. We need to get a subset of records from this table. There are mai... | stackexchange/codereview |
I'd like to try this out, downloaded it , read the readme, referenced the dll, edited the web.config.
I couldn't find any documentation besides the readme, and it seems that there is a lot to know to get it to work...so, I've been kind of grasping in the dark. I set-up a txt file, didn't know where to put it so drop... | stackexchange/codereview |
I want to make a single event that will capture every change in the data in a DataGridView. The list of events is pretty long. I was thinking I could bind the DataGridView to a DataTable since it has less events and it gets notified whenever the user changes the data in the DataGridView. Since the amount of data is tin... | stackexchange/codereview |
I do have a bezier curve, and at a certain point, I want a second bezier curve "branching off" the first curve in a smooth manner. Together with calculating the intersection point (with a percentage following the Bezier curve), I need also the control point (the tangent and weight).
The intersection point is calculated... | stackexchange/codereview |
I want to draw borders for all the pages in my PDF. But while using stroke_bounds, I can only draw single dark lined borders alone. I couldn't customize anything?
Does anybody have any idea on how to change the style of my stroke_bounds borders?
| stackexchange/codereview |
I am stuck with a legacy database involving composite keys and there is no room to modify the db.
The problem seems to be that one part of the key is also used for each foreign key.
So if I have tables A and B like this:
A
company (PK)
aId (PK)
someMoreInfo
B
company (PK, FK)
bId (PK)
aId (FK)
someOtherInfo
The... | stackexchange/codereview |
I am trying to write some skeleton for a game on android, using OpenGL. I would like to know, where should I place my main game loop code?
So far, my best candidate is Renderer.onDrawFrame(...) method, which seems to be called per-frame, so the code looks like this:
void onDrawFrame(GL10 gl)
{
preLoopActions();
... | stackexchange/codereview |
We're able to tail the traffic on a server that we host :
...
+1287737841.266952 ...
+1287737841.267117 ...
+1287737841.267136 ...
+1287737841.278288 ...
+1287737841.278310 ...
+1287737841.278321 ...
+1287737841.278331 ...
+1287737841.278341 ...
...
As you can see they include timestamps, down to the micro-second!
I j... | stackexchange/codereview |
It seems that there are no error handling facility in the Jquery.Form plugin, which is very frustrating. Even though the documentation says we can use the $.ajax options, I still cannot make use of the 'error' option when the server returns an error, especially the 500 and 400 series. Is it that this plugin cannot hand... | stackexchange/codereview |
I have created a UserControl that contains an Ellipse and a few lines. I have drag and dropped them to position them how I like, but when I use the control on another page, the margins are relative to that page and not the user control so they are way off. Is there a way to force the margins to be relative to the use... | stackexchange/codereview |
I'm using XAMPP for Mac, and it seems that the mail function doesn't work. I've tried changing from using sendmail to use SMTP (gmail) without luck. Now my php.ini looks like:
[mail function]
SMTP = smtp.gmail.com
smtp_port = 465
smtp_ssl=auto
auth_username=[user]@gmail.com
auth_password=[pass]
sendmail_from=[user]@gma... | stackexchange/codereview |
I want to send out some batch e-mails using php. I have done so in the past with a foreach loop within which I use the php mail() function. However, when there are a lot of e-mails to send out, this often gets backed up and crashes the server. How can I do this without overwhelming the system?
| stackexchange/codereview |
I am writing my master thesis and is in contact with a digital signage company where im writing about the distribution of large amount of data. I need some ideas or some documented experiences with transfering large amount of data (this is images and video, ~100Mb - ~1Gb - but any data would do, large datasets would gi... | stackexchange/codereview |
A lot of people say that this is asked too much in the comments, which made me hesitant to ask this, but I still have not found a solution in their answers, mostly because (1) they are typically using jQuery and (2) the questions usually contain technicalities I do not understand.
I have a function with a variable insi... | stackexchange/codereview |
It's pretty simple. i'm calling an PHP script from my flash using navigateToURL. It runs the script and opens a new window in my browser
It's possible to just call the php script from AS3, without open a new window ?
Thanks.
| stackexchange/codereview |
How can I document an overridden method or an implemented virtual method of a sub class? Should I use @copydoc?
class A {
/**
* A detailed description........
*/
virtual int foo(int i);
}
class B : public A {
/** {I won't write the same description again.} */
int foo(int i);
}
| stackexchange/codereview |
how to make synchronous Ajax call using dojo.event.connect. Basically for asynchronous Ajax call, if two call is there means it will load parallel. So i want make a call synchronous if the call is executed fully then after only second call should invoke. please help me
| stackexchange/codereview |
I'm creating an application that rehost workflow designer. What I did is following the tutorial from Apress' Pro WF 4 books.
The principle of the tutorial is:
1. Use WorkflowDesigner class to read workflow xaml file, and bind WorkflowDesigner.View and PropertyView property into ContentControl in the UI.
2. Use System.... | stackexchange/codereview |
I like to normalize things the most I can in a database. This isn't obviously the best thing for performance, but it helps with flexibility, reporting, etc. I've found it hard to justify in a recent case though which has caused me to build a model that has 25 fields in it. Is this "too big"? Or, is that quite normal. O... | stackexchange/codereview |
After some trial and a lot of error, I have come to find out that it is not very useful to template operators. As an Example:
class TemplateClass
{
//Generalized template
template<TType>
TType& operator[](const std::string& key)
{
return TType;
}
//Specialized template for int
template<>
int& operat... | stackexchange/codereview |
...or could I also get an NSBundle that represents the Documents directory, to easily access contents in there?
| stackexchange/codereview |
I'm getting some funky behavior with session variables with Razor .cshtml pages. Essentially on some pages I check to see if a Session variable is set, and if not I set it. I keep getting a null object reference.
I believe this is because ultimately Razor is designed for MVC, and I did a little reading about the MVC ... | stackexchange/codereview |
Today I had my algorithms quiz for the semester and I can't figure out these two questions and they've been bugging me all day. I've gone through my notes and the lecture notes and I'm still unsure. I would appreciate it if someone could take a look and provide some insight into these questions. These are not homework ... | stackexchange/codereview |
I'm trying to get the name of the file attached to an email on the gmail app? Can anyone point in the direction of getting the file name ? I can get the attachemnt, just don't know how to get the original file name.
| stackexchange/codereview |
Im trying to create a simple Ajax form for a message board in a CakePHP application, but I can't for the life of me figure out how to properly use the Js->submit() function to submit a form via Ajax.
Heres the form code within my view:
<?php
echo $this->Form->create('Message',array(
'type' => 'post',
'action' =>... | stackexchange/codereview |
I just wanted to know if there is any restriction on the number of lines readLine method can read from a file in java.Any help will be grately appreciated.This is what I am talking about:
FileReader fr1=new FileReader("/homes/output_train_2000.txt");
BufferedReader br1=new BufferedReader(fr1);
while((line1=br1.readLine... | stackexchange/codereview |
I am using SQL SERVER 2005, C# .NET.
I want to diplay date only on my grid view page, currently it showing including time also.
I am restoring date in table with file upload button click function.
In my table i took Load date column data type is DateTime.
Exaple in table column showing like 10/19/2010 12:00:00 AM
On m... | stackexchange/codereview |
I'm developing a template for the shopsystem Gambio GX and I encountered some problems concerning Mootols and the jQuery library.
I want to integrate a content slider on the frontpage. At first I used a Mootools solution, but then I noticed, that Gambio already comes with a jQuery library and uses it for its own stuff,... | stackexchange/codereview |
I have been building a large scale rails app and it has come time to refactor it.
What tips can you offer me, or resources can you point me to? I am especially interested in making my database calls more efficient.
| stackexchange/codereview |
I am designing the architecture for a C#/.NET 3.5 project that will communicate between a client and a server via WCF. This will generally be a query-response system, so as an example, one of the service methods might look like this:
User GetUserByLastName(string lastName);
An additional stipulation is that the WCF c... | stackexchange/codereview |
I have a django model with a field Reminder_End_Date = models.DateField().
I have to filter all records of the model which have reminder date greater than todays date.
However when I try to use the following statement, it does not work:
now=datetime.date.today()
reminderlist=Reminder.objects.filter(Reminder_End_Date>no... | stackexchange/codereview |
I wrote some code to send an email from my PHP script using PHPMailer. For some reason, the scripts isn't sending the messages.
Here Is My Code:
<?php
require_once("PHPMailer/class.phpmailer.php");
$mail=new PHPMailer();
$mail->IsSMTP();
$mail->SMTPAuth = true;
$mail->Host = "ssl://smtp.gmail.com";
$mail->Port = 465;
... | stackexchange/codereview |
I have a really simple problem, but I don't find a nice way how I should solve this:
I have a TEdit field. When I enter this Edit-Field, I want to show an Panel.
When I click on the panel, the panel should hide.
When I leave the edit field, the panel also should hide, but I can't use the onExit event of the editField,... | stackexchange/codereview |
How do I pass C# DateTime values (FromCreateDate and ToCreateDate) to SQL Server 2005 in order to select from a view ?
The result set CreateDate column must be between FromDateDate and ToCreateDate.
| stackexchange/codereview |
I have a xml file with content
<ul>
<li><info>CSS text formatting </info></li>
</ul>
Where info is a class name in css.When i parse the xml and displayed on a page the css class info is applying on the <li> tag.This is working in mozilla.But ie is not taking it as a css class.Is their any method to do in IE
| stackexchange/codereview |
I am creating a new application using asp.net mvc, I'm using munq IOC container as my dependency injection..The issue is i want to create a new project for dependency resolution where i can register all the controllers of mvc project and the repositories of infrastructure project..I have to add Dependency Resolution pr... | stackexchange/codereview |
I've seen a lot of examples using Url.Content to reference javascript, form MasterPages in MVC 2.
<script src="<%: Url.Content("~/Scripts/jquery-1.4.1.min.js") %>" type="text/javascript"></script>
But on runtime I've got failure,
Compilation Error
Description: An error occurred during the compilation of a reso... | stackexchange/codereview |
I am using Taza, and I can not find a way to define page url.
I am looking at wiki, rdoc and source.
I have found that WatirCraft can do it, but I am not sure if it is not implemented in Taza, or if I am doing something wrong.
For:
require 'rubygems'
require 'taza/page'
module Ecs
class LoginPage < ::Taza::Page
... | stackexchange/codereview |
I have a controller in ASP.net MVC outputting a JsonResult like so:
return Json(new { [...] }, JsonRequestBehavior.AllowGet);
...that looks like this:
"data":{"41_A4N1A-1":0,"41_A4N1A-2":0,"41_C4G1A-1":0,"41_C4G1A-2":0,"41_R2N1S-1":0,...
However, Highcharts' docs indicate that the data is expected like this:
"data":... | stackexchange/codereview |
We can say Servlets are back end right? An interviewer once said "Servlets are not back end and for example Spring, EJB do". Is it right? Even spring MVC internally uses servlets to handle the requests right?
Thank You.
| stackexchange/codereview |
I have an array of multiple images which I want to display on my screen (2 Columns, 4 Rows). If there are more than 8 Images in the row, than a new view should be created. Can someone please point me in the correct direction how to handle this?
Thanks for any feedback!
BR,
Stefan
| stackexchange/codereview |
We have a couple mini-applications (single Web form look-up stuff) that need to run in the context of a much larger site and application (hereafter "the Monolith")
We don't want to install the Monolith on every developer's machine, so we want some developers to be able to develop these little apps in their own isolated... | stackexchange/codereview |
I want to know if there exists an annotation or object that gets the open connections in JBoss so they can be closed, and so avoid leaks in the situation where I kill a thread that still has connections opened. I'm using JBoss 4.2.3.
Thanks for your help.
| stackexchange/codereview |
How might one handle making a progressbar update to 100% based on having one or more items from all 3 groups?
For instance if I have 20 fruits, 0 grains, and 2 vegetables, it should show 66/67%. If I have 1 or more items from each group, show 100%; and having only 1 or more of 1 group should show 33/34% complete. I'm... | stackexchange/codereview |
I have a C++ library that doesn't use namespaces. I want to port it to Objective-C. The problem is the name collisions between the two. I want it to have the same name in Objective-C that is the name of the C++ object. But, I just can't figure out the best way to do this without it just becoming a mess. I am hoping for... | stackexchange/codereview |
I have three classes with the following associations:
class Technician < ActiveRecord::Base
has_many :tickets
has_many :services, :through => :tickets
end
class Ticket < ActiveRecord::Base
belongs_to :technician
has_many :services
end
class Service < ActiveRecord::Base
belongs_to :ticket
belongs_to :t... | stackexchange/codereview |
I am writing an RSS parser. Is there any way to find if the given URL is RSS or atom using Java?
| stackexchange/codereview |
From what I understand, adding .first() or :first to a query doesn't stop DOM search after the first match. It just tells jQuery to take 1st element out of matched collection.
If that is true, then is there a way to stop DOM search after the first match? For example, if I know that the result of this query will always... | stackexchange/codereview |
I've been learning Java these days and what I've read just is "Be careful not to write accessor methods that return references to mutable objects" which is really interesting. And now I am wondering whether it is same for Properties and Accessor methods in C#? Or C# already returns cloned copies automatically?
Thanks.
| stackexchange/codereview |
I have a Web Forms page in my ASP.NET MVC application. I need to create a link to it, but ActionLink needs a controller/action pair, which the page doesn't have.
How do I create a link to send variables (a string and an int) to a .aspx page?
| stackexchange/codereview |
Context:
Domain model of Documents having Editions and Tags.
What kind of figures are you going to expect when hydrating using nHibernate?
My domain model not very complex and when I query all Documents fetching Editions as well as Tags the query returns a little more than 8000 rows from the database - which in turn ar... | stackexchange/codereview |
say I want to load an array of short from global memory to shared memory. I am not sure how coalescing works here. On best practice guide, it says on device of compute capability 1.0 or 1.1, the k-th thread in a half warp must access the k-th word in a segment aligned to 16 times the size of the elements being accessed... | stackexchange/codereview |
Wondering if this is even possible or a limitation of PHP, googling around seems to be the case but maybe I'm missing a clever solution here.
Hopefully this will make sense. Right now I have two portions to my site, an admin and client side. I have been able to split it into two controllers(admin and client) that inh... | stackexchange/codereview |
Ok, I asked the difference between Stackoverflow and bufferoverflow yesterday and almost getting voted down to oblivion and no new information.
So it got me thinking and I decided to rephrase my question in the hopes that I get reply which actually solves my issue.
So here goes nothing.
I am aware of four memory segmen... | stackexchange/codereview |
I am trying to commit something to our SVN repo. However, I keep getting this error:
svn commit google-dev.xml -m "Updated with CS Tools configuration changes."
Sending google-dev.xml
Transmitting file data .svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:
/var/lib/svn/tnc/ho... | stackexchange/codereview |
I am using Linq to Entity Framework 4, what I'm trying to do is build a query that finds all supplier entities that do not start with a letter, typically these are numbers, e.g. "1st Choice" I thought this would be trivial and wrote this:
var letters = Enumerable.Range('A', 26).Select(x => (char)x);
var results = from ... | stackexchange/codereview |
I have the following snippet of code (see below) and want to make the function toggle - what is the best way to go about this??
Thank-you.
<html>
<head>
<title></title>
<script type="text/javascript" src="js/jquery.js"></script>
<script>
$(document).ready(function()
{
$("#left_pane").css("left","-300px");
$(... | stackexchange/codereview |
Where can I find a tile engine for HTML5 <canvas>, for writing 2D games?
| stackexchange/codereview |
I am trying to run an HPC cmdlet programmatically to change HPC install credential on a remote computer. If run the cmdlet locally, it's pretty straightforward:
Runspace rs = GetPowerShellRunspace();
rs.Open();
Pipeline pipeline = rs.CreatePipeline();
PSCredential credential = new PSCredential(domainAccount, newPasswo... | stackexchange/codereview |
I would like to change the following batch file to use spaces instead of underscores. However, when I do that the directories come out weird. I've tried using quotation marks, but they come out wrong.
md Sample_sample
md Sample_sample\sample
md Sample_sample\sample2
md Sample_sample3
md Sample_sample2
md Sample_sample\... | stackexchange/codereview |
I wish to utilize the new gated check-in function of TFS 2010.
I have about 10 solutions, that all share as a dependency a proprietary shared-code library.
My structure is:
TeamProj/SharedCode
TeamProj/Proj1
TeamProj/Proj2
TeamProj/Proj3
........
The question I have is, how can I set-off an integration of ALL projects... | stackexchange/codereview |
When I create a content type for SharePoint in XML in Visual Studio. Is it possible to create a field with the Type "Number" and give it a custom format? I don't want the thousands separator, but for some reasons I can't use the type "Integer" ...
EDIT: I tried this without success ...
<?xml version="1.0" encoding="utf... | stackexchange/codereview |
This is the main part of my errorhandler:
function my_error_handler($errno, $errstr, $errfile, $errline){
$errno = $errno & error_reporting();
if($errno == 0) return;
if(!defined('E_STRICT')) define('E_STRICT', 2048);
if(!defined('E_RECOVERABLE_ERROR')) define('E_RECOVERABLE_ERROR', 4096);
... | stackexchange/codereview |
I have string qty__c which may or may not have a decimal point
The code below gives me a System.ArgumentOutOfRangeException: Length cannot be less than zero.
qty__c = qty__c.Substring(0, qty__c.IndexOf("."));
How do i cater to if there is no "."?
Thanks
| stackexchange/codereview |
Maybe a little tricky, but I wonder why. In System.Linq.Enumerable.cs of System.Core.dll we have:
public static int Count<TSource>(this IEnumerable<TSource> source);
In my code I'm doing something evil:
namespace Test
{
public static class Extensions
{
public static int Count<TSource>(this IEnumerable<TSour... | stackexchange/codereview |
I have 2 Activities A and B. Now these are my objectives.
When I'm in B and if I press the Home button, the state of the Activity should be saved. (No problem with this.)
When I start B from A after step 1 a new instance of B should be created (i.e) Previous state should be discarded.
But in Step 2 the state of B sti... | stackexchange/codereview |
I've got a two dimensional array and I want to apply a function to each value in the array.
Here's what I'm working with:
scala> val array = Array.tabulate(2,2)((x,y) => (0,0))
array: Array[Array[(Int, Int)]] = Array(Array((0,0), (0,0)), Array((0,0), (0,0)))
I'm using foreach to extract the tuples:
scala> array.foreac... | stackexchange/codereview |
I'm trying to learn WCF to use it as an IPC mechanism for a host/plugin system. The host needs to be able to call the plugin to Start/Stop it, and the plugin needs to call the server back to perform logging.
I made a simple test case where the host creates an endpoint on net.pipe://localhost/SampleServer with the follo... | stackexchange/codereview |
I'm having trouble setting up SpringPython with PyDev and Jython
I've installed Spring python by:
jython setup.py install
and the setup installed the library to my jython installation successfully.
See!:
In my PyDev project i've selected the jython interpreter and have c:\jython2.5.1\Lib\site-packages in my Library ... | stackexchange/codereview |
Hi I am getting memory leak in Instruments for the following line of code .
NSArray *itemsList=[[NSArray alloc] initWithObjects:@"Love",
@"Hate",@"Happy",@"Sad",
@"Desire",@"Anger",@"Hope",@"Fear",@"Silly",nil];
I am using the below code:
arrayList is also released in dealloc block.
NSArray *itemsList=[[NSA... | stackexchange/codereview |
Kinda confusing title but oh well.
I have a UIScrollView in my viewController, in that is 3 UIViews with some buttons in each. I download data from a server and populate it into the view and this works as soon as you start scrolling the UIScrollView, but sometimes the buttons only partially load.
Usually its the button... | stackexchange/codereview |
I have a contact us form in our website which would send out an email to the site admin when submitted. I would like to know from which site the user has landed onto this page and how many unique users have come here and such things... I have used Google Analytics but it sends out only information on the adword that th... | stackexchange/codereview |
I am using Android 2.1 SDK, the application reads from the Sqlite database, a table that has two columns, an id, and a string.
I read in this into a HashMap<Long, String>, the value part of it gets displayed in a List, now, I wish to obtain the key value, so I cooked up this simple routine:
private Map.Entry<Long, Stri... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.