instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have ArrayList of custom objects that is the data underlying an ArrayAdapter for a ListView.
Sometimes this data is modified in a batch, such as fetching a set of new items from the web. When the data is modified in a batch, should notifyDataSetChanged() be called after every add() to the ArrayList
Some over simplif... | stackexchange/codereview |
I've just started using PhpMailer, so I've had to decide if I was going to use SMTP, sendmail, qmail... I've always used the simple mail() function in PHP, and never really thought about it.
Is one method better, more reliable, simpler, or more appropriate for a specific task.? (massmail, attachment, etc...)
I'm develo... | stackexchange/codereview |
Ajax.BeginForm calls an action and then returns JSON.
How do I access JSON object in my OnComplete js function?
so my Ajax.BeginForm looks like this...
using (Ajax.BeginForm("Coupon", new AjaxOptions { OnSuccess = "CouponSubmitted" }))
and my OnSuccess function looks like this...
function CouponSubmitted() {
var d... | stackexchange/codereview |
As I know, not all WP7 have 480 x 800 pixels in resolution.
What is the best strategy to manage different screen resolutions in Windows Phone 7 ??
If I hardcode the width, height, margin, etc. in the xaml, will it be messed when the phone does not support 480x800 resolution ??
Let's share your thoughts.
Thanks.
| stackexchange/codereview |
I'm attempting to send a dictionary from jQuery to Django using a getJSON call:
jQuery.getJSON(URL,JSONData,function(returnData){});
The JSONData object is formatted as follows:
JSONData = {
year:2010101,
name:"bob",
data:{
search:[jim,gordon],
register:[jim],
research:[da... | stackexchange/codereview |
I can not create a new project.
When I try to create a new project, I put the name and then I get
An SDK Target must be specified.
| stackexchange/codereview |
I am very new to this Symbian C++. I want to learn the symbianc++ very clearly and keenly.Could you please refer the book for me? Which is the efficient book for learning Symbian C++.
Thanks in advance.
| stackexchange/codereview |
i want a little php function to choose a number between 0 to 5, with 50% percent chance that it will be zero, and also choose between two strings at the same time randomly:
the algorithm:
choose number between 0,1,2,3,4,5 randomly
(50% chance for zero, 50% chance for 1,2,3,4,5)
and
choose string blue, yellow randomly... | stackexchange/codereview |
I want to write a application which can use to generate .exe program automatically from some word and txt files.
How can I implement this ? Is it possible to generate a exe program with programming ?
| stackexchange/codereview |
I'm receiving this error, however there is NO flash on the page. I've used FireBug also to confirm, but only receive this error in IE (IE 8 that I've tested).
Is there something else that could cause this outside of flash?
| stackexchange/codereview |
If I do:
int i=3, j=10;
float f;
f=(i+j)/2;
so f won't get value 6.5 but 6.
But,
f=(i+(float)j)/10;//edited
would be f=6.5.
What is the place where this temporary values are stored and why do we need to type-cast?
| stackexchange/codereview |
I am using pixastic (http://www.pixastic.com/lib/docs/actions/blend/) on a site I am implementing and need to use JQuery to loop though a collection of images that have a shared class and apply blend code to each image.
The sample code on the pixastic site doesn't make much sense to me (it looks like it is creating a n... | stackexchange/codereview |
So I have been twiddling with a personal project to import my garmin gps data into a local database. The data lives in a GPX xml file, whose schema is defined by an xsd file.
The idea is for the client to upload their GPX file, and the SL client would validate it before sending it to the server. But I ran into some i... | stackexchange/codereview |
I am not an expert at regular expression and have a regular expression
^\s?([-*]|\d+[.])\s+
I wonder if anyone has ideas about shortening/optimizing/simplifying the above regular expression?
| stackexchange/codereview |
I have a mapkit on my app but the info button is hidden behind it, can I do something so the info button is in front of the map view???
Thanks,
Jon
| stackexchange/codereview |
I have already seen two stack implementation of this question but I am really confused as how one could get O(1) operation.
consider following example:
S1[3542761986759]
S2[3332221111111]
The idea/algorithm here is
Push element E on S1
Check to see if top of S2 >= E and if true, insert E on S2
But when getMin is c... | stackexchange/codereview |
I cannot get proper desired size of my TextBlock.
I have few lines of code:
TextBlock block = new TextBlock();
block.Style = this.TextStyle;
block.UpdateLayout();
block.Measure(new Size(this.ActualWidth, this.ActualHeight));
block.Text = "3333";
return block.DesiredSize;
And i ... | stackexchange/codereview |
I just want to know, how the update statement works? Like, what does SQL do during the update statement? I'm currently understanding the following script.
UPDATE Employees
SET
EmployeeLeaves -= 1,
IsOnLeave = CASE WHEN (EmployeeLeaves > 0) THEN 1 ELSE 0 END
WHERE
EmployeeNo = 2000;
In the IsOnLeave statement,... | stackexchange/codereview |
I use tapestry 5 as my choice of web framework. Tapestry allows me to define symbols in the configure class and inject symbols into other components.
for example,
public interface SymbolConstants {
static String DEFAULT_TIMEOUT_KEY = "default.timeout";
}
public class AppModule {
void contributeApplicationDefau... | stackexchange/codereview |
I'm trying to create a DirectX device in full screen (up until this point in time I've been doign windowed), but the device won't get created and I get an invalid call HR fail.
This is my code:
md3dPP.BackBufferWidth = 1280;
md3dPP.BackBufferHeight = 720;
md3dPP.BackBufferFormat = D3... | stackexchange/codereview |
How to use border-radius.htc with IE to make rounded corners
I am using border-radius.htc to fix border-radius in IE
It is works very well here
http://www.faressoft.org/eshterakat/border-radius/border-radius.html
But it doesn't work in my html page ! I don't know why !
http://www.faressoft.org/eshterakat/
-moz-border-r... | stackexchange/codereview |
How can I filter my POST data to be in SHA1 value using Zend Filter? I'm trying to compare current plain password that user submitted to a SHA1 value in my database.
I'm using Identical Validator to compare the value (which I got from Database before rendering the form to user). I'm using processAjax to validate all th... | stackexchange/codereview |
I have a little paint application which was based on the GLPaint sample code. It is working fine.
My Problem is that I need to implement a "brush" that erases the textures which were already drawn.
My goal is to have an eraser which has soft edges. Right now I just took the same texture which I used for drawing but swi... | stackexchange/codereview |
My code behind is VB.NET. I use ASP.NET UpdatePanel like the following. However, after the post-back, it locks TextBox controls , I cannot type anything
, except when I move the mouse over and click on the TextBox.
Can anyone show me why it locked all TextBox controls after the post-back?
Here's why I use UpdatePane... | stackexchange/codereview |
I'm using the most recent version of Sharp Architecture, and having problems when I call SaveOrUpdate on a repository. I'm always getting the MappingException with No persister for: error. I haven't changed much from the default Sharp Architecture, and I'm pointing towards the dll that contains my entities. Has any... | stackexchange/codereview |
In Common LISP you can do the following
(macro lambda (x) (list (quote car) (list (quote cdr) x)))
It looks like this is not possible (an anonymous macro) in Clojure.
Is this true?
Why was this left out?
| stackexchange/codereview |
When I read more about Ruby metaprogramming, most of the time we found at least two solutions to solve a problem. Please look at two examples below:
class Base
def self.has_many(*args)
# ...
end
end
class Student < Base
has_many :books
end
Another style:
module Base
def self.included(klass)
klass.exte... | stackexchange/codereview |
I have the following two models in my app Spaces which are like projects & Permissions
class Space < ActiveRecord::Base
has_many :permissions
has_many :users, :through => :permissions
class Permission < ActiveRecord::Base
belongs_to :user
belongs_to :space
belongs_to :role
validates_presence_of :space_id , ... | stackexchange/codereview |
I need to put scroll box with a button for Terms and condition. The button will be enabled only after the user scrolls down the scroll box to ensure that the user has completly read the terms and conditions.
With html, javascript, div, may use php
Thanks
| stackexchange/codereview |
Is it possible to call get info dialog in mac os for a specific file in Java?
Thanks
| stackexchange/codereview |
When I run this through Findbugs, I get a warning:
static @NonNull Object foo(@CheckForNull Object arg) {
if (arg == null) { // warning on this line
throw new NullPointerException();
}
return "something";
}
The details of the warning is the following:
Bug: arg must be nonnull but is marked as nul... | stackexchange/codereview |
I have just overide my back button in my code like this
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
return true;
}
return super.onKeyDown(keyCode, event);
}
@Override
... | stackexchange/codereview |
I am currently evaluating the Microsoft sync framework as a possible solution to sync data between two SQL databases. The examples I have seen so far rely on "tracking tables" containing the information used to track changes to be synced, with triggers on the main tables to keep them up to date.
My database already con... | stackexchange/codereview |
I have about 60 images I want to store in Core Data, 30 of which are avatars and have the prefix of avt_filename_00X.png and 30 of them are smaller and have a different prefix.
Rather than storing all the images as BLOBs in Core Data/SQLite, I want to store the paths for each image found (in the same way you would stor... | stackexchange/codereview |
I have a table with two columns that will be used as filtering criteria. Using Linq to Entities, I want to pass in two values and always return the closest match. For example, (1,2) should return (1,2) not (null,2) as the closest. If neither value finds a match, then the Null, Null column match is used.
Below is the sa... | stackexchange/codereview |
I followed the example in chapter 14 of the book, "Camel in Action". I wish to hide the middleware from by business logic. While developing using "camel:run:", everything seemed to work pretty well.The configuration file is below:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/sche... | stackexchange/codereview |
I wrote a small program, kind of specialized HTTP server in haskell, which is not much more complex than the code below. What puzzles me is its memory consumption. Say, when I run a test compiled from the enclosed code and make several POST requests containing up to 20Mb body whole program will have VM size of ~800Mb a... | stackexchange/codereview |
I'm having issues adding a "sub result" to a result in Codeigniter. Not sure how to add to this object.
$result->{$record_id}->threads = $threads;
should equal something like this
$result->1->threads = $threads;
but I can't get it to work... I'm not new to OOP but this is the first I've tried to do this.
<?php
fu... | stackexchange/codereview |
This might be a silly question, but here goes :
I hashed a dictionary of words into an unordered_set based hash-table. My hash function was made intentionally "bad", in that all strings that contained the same set of letters would hash to the same value. I initially tried to over-ride the normal hash function behaviou... | stackexchange/codereview |
I am looking for some way to programmatically upload an iPhone/iPad application to a device through USB connection from Mac OS X and launch the application on the device. I know how to do it manually from XCode. The goal is to create test automation of an application on iPhone/iPad device/simulator. Thank you.
| stackexchange/codereview |
{{ p.date }}
is displayed as:
Date: 2010-10-29 21:56:39.226000
How do I make changes to how that's displayed?
| stackexchange/codereview |
I have a button on the page and a gridview with checkboxes on the first column. The gridview is bound to a List. On buttonClick, I need to retrieve the underlying bound data item (MyEntity) for each selected row. How can I do this? I can't simply recreate MyEntity based on the gridview columns, because I am not displa... | stackexchange/codereview |
I am using .NET 2.0 and the finally block does not seem to be getting executed if the Thread times out. For example, if I see the message "Child Thread Timed Out...", I will not see the message "Finally block started...". This means that the database objects (Oracle.DataAccess) may not be getting cleaned up properly.... | stackexchange/codereview |
I have a Validator on a RadioButtonGroup of 2 Radios. There's a checkbox above the RadioButtonGroup whereby if checkbox.Selected, then the Radios are enabled.
So the Validator is required if the checkbox.Selected. So far so good.
The problem is once a radio gets selected, the RadioButtonGroup selectedValue gets set. ... | stackexchange/codereview |
I want to sort a hash of key->value by the values , and get the list of the sorted keys.
This seems to work:
groovy> def map = [a:5, b:3, c:6, d:4].sort { a, b -> a.value <=> b.value }.keySet()
groovy> println map
[b, d, a, c]
but will it always work?
I don't know if the iterator that builds the keySet() will al... | stackexchange/codereview |
still working on this system call!!!
i have added a system call to a kernel, compiled and the OS is running off it.
now i am getting syntax error on the compilation of my test application.
testmycall.h
#include<linux/unistd.h>
#define __NR_mycall 244
_syscall1(long, mycall, int, i)
testmycall.c
#include<stdio.h>
#i... | stackexchange/codereview |
With a new Rails 2.3.10 project, the file config/environment.rb has the following line commented out:
# config.gem "sqlite3-ruby", :lib => "sqlite3"
but for some reason, I tried a scaffold foo, and start the rails server, and the app is running.
I thought the requirement is, every gem the app needs, it has to be lis... | stackexchange/codereview |
I'm using the zend framework. From within my phtml file, I am trying to call a link to a swf file that is outside of my web directory.
The code for this link is:
<?php echo getcwd(); ?>
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="/message/get-file/messageId/<?php ... | stackexchange/codereview |
I have a model that has an id that isn't unique. Each model also has a date. I would like to return all results but only the most recent of each row that shares ids. The model looks something like this:
class MyModel(models.Model):
my_id = models.PositiveIntegerField()
date = models.DateTimeField()
title =... | stackexchange/codereview |
Say you have both VS2008 and VS 6 installed on your computer,
and you wish to write an make file that will compile some C++ code using
the VS 6.0 compiler. How can you do that? What is the way to control the selection
of the compiler outside the make file?
Thanks
| stackexchange/codereview |
In my mind this sounds like a superb idea. Using the EnvDTE would make this possible too, so why isn't there more examples on this available?
Maybe I'm missing an disadvantage of doing this...?
Any pointer to good T4 and EnvDTE resources would be great. :)
| stackexchange/codereview |
I need to print the result of a program with 20 significant figures, but I don't know how to print more than 15 figures (format long). Is there any way to achieve this?
| stackexchange/codereview |
Sometimes when i run this code I get a process and id and sometimes the command will execute but the data return stays empty? Does anybody know how to catch the stream properly?
/**
* Run command in background and returns the process id
*
* @param string $cmd
* @return int process id
*/
public function runBackgro... | stackexchange/codereview |
I'm trying to make something kind of fuzzy today :)
I'd like to create some PHP script / .htaccess to execute every request made to the file (I will redirect every request with .htaccess on my PHP script).
So the script should contact another server with those requests and return the content. My main goal is make it ac... | stackexchange/codereview |
I'm looking for a good efficient method for scanning a directory structure for changed files in Windows XP+. Something like how git does it is exactly what I'm looking for, when running a git status it displays all modified files, all new (untracked) files and deleted files very quickly which is exactly what I would li... | stackexchange/codereview |
I'm starting up with Entity Framework and RIA Services. I'm also evaluating whether to use POCO or not, I believe it is the way to go since we will work on an agile (scrum) environment... (so far)
With the self-tracked entities I could add decorators on the metadata in order to get client-side validation. How can I ach... | stackexchange/codereview |
I am new to C#, so need your help.
I have a file that has a lot of lines and 3 tab delimited fields. I want to read each line, extract the fields from the line, and push the 3 extracted values into an object. In the end, I should get an array of objects. The length of the array should be equal to the number of lines in... | stackexchange/codereview |
I'm having a problem with a database, where it seems a column is updated with a wrong value. At the moment, I have no idea which program is doing this. What would be the best way to find this out? Things that could really help me are, in order of helpfulness:
The application name
the host executing the application
the... | stackexchange/codereview |
i hav two classes...both classes are extends activity.. i need call other class method on main class on android development..its urgent..please.. i done something like subclass sub = new subclass()...its not work..
In 1st activity class
package org.me.intent_testing;
import android.app.Activity; import android.os.Bund... | stackexchange/codereview |
I'm confused about which to use and when. Is there a rule of thumb? Can in most cases either of them be used? Any special rules?
@property (nonatomic, retain) NSDate *theDateFromPicker;
@property (nonatomic, copy) NSDate *theDateFromPicker;
In this case which would be the best choice?
Thanks
-Code
| stackexchange/codereview |
In C# I run a massive create table script in Sybase and my program hangs after around 47 create table statements run. I send the statements to the database one at a time and dispose of my command and connection object each time.
Think it might have to do with the allowable cache size in Sybase
So when I send 47 create ... | stackexchange/codereview |
I'm setting up a continuous integration environment, using VisualSVN Server and CrusieControl.NET.
What I want to do is delete the working copy before the MSBuild task starts?
I have read that I could use Nant or a Batch file which ccnet would invoke.
What is best practice here?
Any help on this would me great!
here i... | stackexchange/codereview |
i am implementing puzzle game app in android . in this application one level complete then get score number of moves and remaining level completion on time .i am level completed show in dialogbox it shows move next level ,then number of moves and remaining time in each level value display in these dialog box
todispl... | stackexchange/codereview |
I need a recommendation for software, script, whatever tool which would let me easily find and copy files from source directory to destination, which copies/replaces the file only when the destination directory doesn't contain the specified file or it contains the file with different content (eg. using hash comparision... | stackexchange/codereview |
I'm trying to make some web-based board games, and I want the interface to be pannable and zoomable. Much like how in Google Maps, you can pan and zoom the map, I want the game board to be moved and zoomed. Unlike Google Maps of course, I do not want to work with image tiles.
Can anyone give me recommendations as to ... | stackexchange/codereview |
I have a view where a UITextView always has focus. What I want to do is extend the built-in undo/redo behavior to support undo/redo for when I programmatically set the text (e.g., for when I clear it, by setting it to @"").
Since only the firstResponder gets undo/redo events, I thought I'd simply use the UITextView's ... | stackexchange/codereview |
I'm wanting to make a password unlock screen for my app, and I'm not sure how I'd go about it.
I'm wanting it to look like the Apple-designed version of it, which is the passcode lock setting screen.
How might I go about doing something like this, where as soon as all four digits are entered the code is immediately ch... | stackexchange/codereview |
I'm new to PDO and just started using it. I already inserted, updated and deleted data using it and it's very simple to use the basics.
In a test environment I inserted some HTML codes to the database. Like:
<a href="google.com">Google</a>
<b>Bold text</b>
<u>Underlined text</u>
etc...
I'm trying this out, because I'm... | stackexchange/codereview |
I want to playback audio file from byte code. I already have byte code for audio file.
But when I playback with System.Media.SoundPlayer, I got error as "{Sound API only supports playing PCM wave files."}. My audio file format is (CCITT A-Law).
Can any one who have this knowledge share with me pls??
Thanks.
| stackexchange/codereview |
Why this doesn't work ? (i tried everything!)
$.ajax({
type: "GET",
contentType: "application/json; charset=utf-8",
url: "Webservice.asmx/HelloWorld",
data: { param1: "aaa" },
success: function (msg) {
alert(msg.d);
}
});
the web service
[WebMethod]
[ScriptMethod(UseHttpGet = tr... | stackexchange/codereview |
I have a project in which I'll have to process 100s if not 1000s of messages a second, and process/plot this data on graphs accordingly. (The user will search for a set of data in which the graph will be plotted in real time, not literally having to plot 1000s of values on a graph.)
I'm having trouble understanding us... | stackexchange/codereview |
Perhaps I'm missing a setting here...seems like I am, but I cant see it!!
I have a deployment package, which works except...it deletes everything in the site that I am deploying to.
I have a web application beneath the site that I am deploying and I dont want that to be touched.
That has its own deployment package.
Any... | stackexchange/codereview |
This might be a very simple question, but I can't get it working.
All I want is to have 2 boxes (left and right), both should take 50% of the space and they should show up next to each other.
My current css looks like this:
#left {
text-align: right;
width: 50%;
padding-right: 10%;
float: left;
}
#right {
wi... | stackexchange/codereview |
I'm using the sectionIndexTitlesForTableView method for my custom UITableView, to display A-Z on the side of my table. However, the standard view of this doesn't match the style of the table. Is there a way to change this, or at least move the index a little?
Here's how it overlaps:
| stackexchange/codereview |
i found this link.. LINK what i want is there's a JPanel that has a background and another JPanel with half the size of the first JPanel but with an image that is transparent and with a face or a ball at the middle.. :) just like the screenshot from the link.. is that possible to code in java? :) im just thinking it li... | stackexchange/codereview |
I have a image inside a div when i click on the image i want it to alert me of the parent id that will be "group1"
<div id="group1">
<img class="header_logo_dis" src="test.png">
</div>
$('.header_logo_dis').click(function() {
alert($(this).parent("div:first"));
});
Thank you,
| stackexchange/codereview |
Have a server-socket running in an android application, which I debug using the emulator. Using the emulators console and "redir add tcp:8888:8888" I can make the service available to a program running on my development machine (as localhost:8888).
The redir port is however not available on any other network interface,... | stackexchange/codereview |
I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750.
I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I w... | stackexchange/codereview |
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer();
$format6 =& $workbook->addFormat();
$format6->setBgColor('green');
$format6->setPattern(6);
$worksheet->write(1, 1, 'the bg', $format6);
$workbook->send('setBgColor.xls');
$workbook->close();
?>
Can you please tell me th... | stackexchange/codereview |
I have created a WebView layout, which is used to access a specific website, however it would be useful to edit or create a custom "Web page not available" resource when a handset doesn't have a network connection or the page times out. I know it's possible because if you open the app "Wikidroid" while a handset is in ... | stackexchange/codereview |
I have a Player class that derives from Humanoid and Humanoid derives from Sprite like so
Sprite -> Humanoid -> Player
So far so good. Sprite has the virtual method
virtual sf::Sprite getSprite() { return sprite_; }
where sprite is an image object that can be drawn onto the screen.
Humanoid declares virtual sf::Spri... | stackexchange/codereview |
#include <stdio.h>
#include <inttypes.h>
int main(void)
{
int8_t int8;
int16_t int16;
int32_t int32;
int64_t int64;
uint8_t uint8;
uint16_t uint16;
uint32_t uint32;
uint64_t uint64;
scanf("%"SCNd8"%"SCNd16"%"SCNd32"%"SCNd64"%"SCNu8"%"SCNu16"%"SCNu32"%"SCNu64,
&int8, &... | stackexchange/codereview |
I try to bulk insert some datetime values in this format:
31/12/2005 00:00:00
using something like this:
create table Seed
(
StartDate datetime not null
)
BULK INSERT Seed
FROM 'd:\dump\Seed.txt'
WITH
(
firstrow=2,
FIELDTERMINATOR = '\t',
ROWTERMINATOR = '\n'
)
But I get this:
Bulk load data conver... | stackexchange/codereview |
Hi is it possible to cast a List?
i have an abstract class that has a method that takes some sort of List<>, iterate through it in a for loop getting each object in that list and calling the insertItem abstract method that is implemented by the sub class to basically pull out the proper data in the items and then final... | stackexchange/codereview |
I'm using a captcha script for a form. Strangely the image will frequently fail to render the first character of the string of random characters. This pattern will last for about 8-12 refreshed pages, before the expected behavior is reestablished.
I know the string contains the full set of four characters because I've... | stackexchange/codereview |
I have 13 matrices of various dimensions that i'd like to use in pairwise matrix correlations with a custom function (that calculates the Rv coefficient). The function takes two arguments (matrix1, matrix2) and produces a scalar (basically a multivariate r value). I'd like to run the function on all possible pairs of m... | stackexchange/codereview |
I need to count the page impressions of every page on a TYPO3 site into the db.
So I think I need an extension which is called on every page impression and increase a column 'impressions' in the db of the specific page.
I'm new to typo3 and new to extension development as well. Is there a way to include an extbase-ext... | stackexchange/codereview |
I have a Web App and a service sitting on the same machine and communicating via message queues. The problem I'm experiencing is that about half of the time the messages I send from the service are not arriving to the reading code in the web app. Some of them will arrive and some will not. The messages are sent with at... | stackexchange/codereview |
If you have a database driven website based on PHP / Cakephp , how do you make the database driven pages to look like somesite.html or somesite/ - so that the pages can be indexed by Google
or so that these pages can be directly linked to
| stackexchange/codereview |
I am developing an ASP.Net MVC 2 application as a composite application in SalesForce.com. For those not familiar with SalesForce.com it is a CRM platform on the internet. What the composite application is it simply is shown inside an iframe in a separate tab.
So when the user logs in to salesforce.com that user sees a... | stackexchange/codereview |
How can I transfer pigTalk() into its own class?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FunctionTest
{
public class Program
{
public static void pigTalk(string sentence)
{
try
{
while (sentence != "... | stackexchange/codereview |
i am looking to search for in dir ...
a2010-02-10
how to search the ls all dir in with date format
ls -d *(\d+)-(\d+)-(\d+)
its not working like perl
what is the right format
| stackexchange/codereview |
What is your Emulator feature that you could not work without?
Which unknown great shortcut, console command or startup option is there that you discovered and you think has to be also known by all other Android devs?
Share your Emulator wisdom with us.
| stackexchange/codereview |
hi im wanting to stop all threads when my main activity closes as some are still running afterwards and are giving NullPointerException as they try to access ArrayLists which no longer exist. however none of the obvious methods are working and they are also deprecated. is it possible as im currently using a try/catch s... | stackexchange/codereview |
I've implemented the following:
File versioning in Ruby on Rails with Paperclip & acts_as_versioned:
[http://eggsonbread.com/2009/07/23/file-versioning-in-ruby-on-rails-with-paperclip-acts_as_versioned/][1]
When you upload a new photo it is now successfully being version. The issue I'm having is that I can't grab the i... | stackexchange/codereview |
Hi I have a C# web application
with a C# ActiveX tool that connects to the user's hardware to collect information.
anyways all works fine on most computer
except on some it shows me a (sometime on resetting of CAS permissions it works but soon starts throwing a fit)
"Assertion failed!" error
(See screenshot)
new Securi... | stackexchange/codereview |
It is quite tiresome writing try/catches in every method block.
Apart from AOP, is there any way to avoid this and catch all exceptions? Would it be enough to just catch them at the global error handler level (e.g. as in ASP.NET).
Thanks
| stackexchange/codereview |
I have a specific problem, and I find it hard to find a solution!
Using a GPS Device I can find my current position on earth. I need to be able to point to a direction (a compass on iPhone or similar device) and find what important objects (locations) are in that direction! Assume that I do have all those locations sto... | stackexchange/codereview |
I've been using Feedzirra for a while to grab single feeds and parse them with no issues but I'm trying to run two separate feedburner feeds through it and I know that they work by themselves but running the both of them is producing an error.
NoMethodError in Feed entryController#index
undefined method `title' for #<A... | stackexchange/codereview |
I am looking for a way to bind a DynamicResource into a ComboBox's ItemStringFormat.
For example I want to do something like:
<ComboBox ItemStringFormat="{}{DynamicResource String_Prefix}: {0}" />
Is this possible?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.