instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm currently attempting to present several enum's to the UI, albeit in a more friendly manner than a concatenated string.
public enum StoreMethod
{
// Insert To Front
InsertToFront,
// Insert to End
InsertToEnd,
// Overwrite Existing
OverwriteExisting,
// Throw Exception If Exists
ThrowExceptio... | stackexchange/codereview |
I'm new to rails
when I check the rails online documentation pages
like this:
http://api.rubyonrails.org/classes/ActiveRecord/Base.html
in the red header area
ActiveRecord::Base
In: activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb: activerecord/lib/active_record/connection_adap... | stackexchange/codereview |
THIS is the error i am getting when i am compiling my project
Parser Error Message: Could not load file or assembly 'System.Web.Abstractions,
Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its
dependencies. The system cannot find the file specified
Source File: C:\Documents and Setti... | stackexchange/codereview |
I find the default lexer for C++ highlighting not very specific enough.
I want to at least be able to specify a different color for:
type keyword (void, int, float etc)
instruction keyword (if while do return for etc)
class-related keyword (template class virtual friend)
type modifiers keywords (static const extern uns... | stackexchange/codereview |
The code is simple:
<?php
function getStringFromUrl($url){
$fResource = fopen($url, 'r');
do {
$data = fread($fResource, 8192);
if (strlen($data) == 0) {
break;
}
$contents .= $data;
} while(true);
fclose ($fResource);
$contents = mb_conver... | stackexchange/codereview |
Having a variable length encoding is indirectly forbidden in the standard.
So I have several questions:
How is the following part of the standard handled?
17.3.2.1.3.3 Wide-character sequences
A wide-character sequence is an array object (8.3.4) A that can be declared as T A[N], where T is type wchar_t (3.9.1), option... | stackexchange/codereview |
I have a specification that validates codes. It looks like the following:
public ClassificationSpecification : ISpecification<Classification> {
HashSet<string> codes;
// constructor elided
public IsSatisfiedBy(Classification classification) {
return codes.Contains(classification.Code);
}
}
Th... | stackexchange/codereview |
I want to make a haskell program where some shape is drawn in a window. When I click inside the window the color of the shape should change.
I have come up with this:
testDemo points =
runGraphics $
do
w <- openWindow "Test" (480, 550)
colorRef <- newIORef Green
let
loop0 = do
... | stackexchange/codereview |
I have an event queue to process. A thread adds events to the queue.
I have created a runnable Task that in the run method does all which is necessary to process the event.
I have declared an Executors.newCachedThreadPool(); and I execute each Task.
public class EventHandler {
private static fina... | stackexchange/codereview |
I have a lists of html select boxes say 30. I need to give a option for a user to browse a file, where he would have stored the values of these select boxes. once he selects a file, i need to show the value in corresponding select boxes.
Do i need to store this file on server and read the file?
i have idea to ask to u... | stackexchange/codereview |
I got a project in C++ which I need to edit. This is a declaration of variable:
LPSTR hwndTitleValue = (LPSTR)GlobalAlloc(GPTR,(sizeof(CHAR) * hwndTitleSize));
How to check if this string is empty?
I tried simply with if(hwndTitleValue == "") but it always returns false. How to check if this string is empty?
EDIT
I a... | stackexchange/codereview |
I have a Flex Spark List (well it's a Tree to be precise but it renders as a list) and as I'm scrolling through it I want to provide information about the item that is currently at the top of the list in context to the viewport. So this could be the 100th item in the list depending on how far you've scrolled down.
| stackexchange/codereview |
When working with Binding converters are pretty common.. I always find myself
Right-click the correct Folder
Click Add
Click New Item
(Sometimes) Choose Code to the left
Choose Class and "Add" (and sometimes when I'm in a hurry a create an AboutBox instead :-( )
Copy an old IValueConverter or IMultiValueConv... | stackexchange/codereview |
I am trying to zip the following file structure on my machine,
parent/
parent/test1
parent/test1/image1.jpeg
parent/test2
The problem here is i cant zip the above file structure using java. I have google and found following code sample but it only zip the files only inside a given folder.
File inFolder=new File("... | stackexchange/codereview |
I have created image viewer control, that provide zoom in/out the image, and when the image zoomed and be larger than it's viewer (you can't see all the image) I provided the ability to drag the image (like Windows Photo Viewer) using "TranslateTransform" but I wanna the image to stop dragging when it's border (left or... | stackexchange/codereview |
I'm using NHibernate / Fluent NHibernate with Oracle and I'm running into an issue. I've got the following mapping file defined:
public OrderMap()
{
Table("ORDERS");
Id(x => x.OrderId, "ORDER_ID").GeneratedBy.Sequence("select ORDERS_SQ.nextval from orders");
Map(x => x.CreatedBy, "CREATED_BY");
Map(x =... | stackexchange/codereview |
I was working with VB6 last year and I used an Add-on that made it possible to search not only for the definition of objects or functions but also find all references or calls of specific objects or functions.
Unfortunately I can't remember where I got it from. Can anybody help on that?
Thanks in advance!
| stackexchange/codereview |
Whenever I bash into OpenSSL on Windows or Mac I always make my own memory BIOs, and link them up to the platforms message based (asynchronous non blocking) socket implementation. (WSAAsyncSelect on windows: CFSocket on Mac)
Secure programming with the OpenSSL API hosted on ibm.com seems to be the best reference on imp... | stackexchange/codereview |
I have 2 projects
UI: contains all my forms and user control
Translation: contains my translation code used to translate the UI
The Ui project obviously needs a reference to the translation project since it needs translation.
Since I defined custom user controls in the UI that need special translation. The Translat... | stackexchange/codereview |
Using c# when I copy a bat file (File.Copy()) from one location to another on my C drive and close the program then run another program and try delete the file (File.Delete()) I get an error:
Access to the path 'C:...\file.bat' is denied.
So i'm thinking it's a permission issue on the oroginal file.
But then I run a pr... | stackexchange/codereview |
I have a field in my FileMaker Pro database that contains semi-colon delimited data in it so what I want to do is separate that data into a new table. if someone could point me in the right direction that would be helpful
| stackexchange/codereview |
I want to create a page where users can book a piece of equipment for a certain number of days.
I'm planning to implement that using the Date and Calendar modules, as I'm already using them for other purposes on the same site. Each reservation would be a node, they would be displayed using the calendar view.
I've look... | stackexchange/codereview |
I use the NLog Libary (http://nlog-project.org/) within my C# Win Forms to do the logging.
Has anyone some experiance if it's possible to write the Logfile into an "IsolatedStorage" with this NLogger?
Thx 4 answers
| stackexchange/codereview |
Does anyone know a good and/or easy to use PHP library/class/whatever-it's-called for being able to do oAuth against a large amount of providers (Facebook, AIM/AOL, MSN, all the 'big boys', etc)? All it needs to handle is essentially authentication, there won't be any permissions or anything - it just needs to be able ... | stackexchange/codereview |
What I would like to do is to update a .gsp page on data is change.
Something like this:
http://weichhold.com/2009/07/20/updating-multiple-page-fragments-with-grails-and-ajax/ but here the content page doesn't change on data changes.
There is a easy way to do this?
| stackexchange/codereview |
i want to deny access (from all non-logged in users) to all the files in a directory from the browser.
Only a logged in user can access his files in that folder. The file paths are stored in the database with the logged in user id, so that when the user logs in, he can view or download only his files.
So i dont want ot... | stackexchange/codereview |
How to check whether an ASP.NET GridView has atleast one row, using JavaScript?
| stackexchange/codereview |
I am developing Windows Mobile Application which will be automatically started in system startup. I need to run this application as service that should not show UI (Progress indication) when it loads and do some processing while loading.
I tried to use http://managedserviceswm.codeplex.com/ but it shows UI (Progress in... | stackexchange/codereview |
I have a VERY large array (96,000 elements of type GLfloat). It was previously 24,000 elements, until I made a couple of changes. Now I'm getting a crash. I haven't done much to debug it yet, but when I noticed how ridiculously large one of my arrays was getting I thought it might be worth looking into. So, my only que... | stackexchange/codereview |
I'm using EmacsW32 from http://www.emacswiki.org/emacs/EmacsW32. EmacsClient works great - opening a file with it always uses an existing emacs. However, starting emacs for the first time opens a dialog with the text "Waiting for emacs server to start...", which is very annoying. Is there any way to suppress this dialo... | stackexchange/codereview |
I'm trying to write a WCF 4.0 service that will receive SOAP alerts from TFS 2010. Here is my service contract:
[ServiceContract(Namespace = "http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Notification/03")]
public interface IService1
{
[OperationContract(Action = "http://schemas.microsoft.com/... | stackexchange/codereview |
I am making changes to an existing web application based on Struts1 - which already is made up of various forms & actions.
What I am trying to do is
Add a few pages for the mobile version of website.
For example, I want to add a JSP page that contains a form with a few
fields (same as that in the PC
version) with... | stackexchange/codereview |
I have a list of Actions (I got them form HTMLEditorKit), and I want to execute them simply from the code, not from gui. Is that possible?
| stackexchange/codereview |
I am going to import some data, and I have the data available in either a JSON feed or a XML feed. I can't decide if I should use the XML or the JSON feed.
What are the pros and cons of choosing either feed, and what is your prefered choice?
| stackexchange/codereview |
I'm not really a developer but I have experience in PHP, Java and want to have a go at developing some really simple SharePoint web parts (for WSS 3.0, MOSS 2007 and in future 2010).
I assume it requires knowledge of ASP.NET. Should I start learning C# or get stuck straight into web parts.
Any good tutorials for a com... | stackexchange/codereview |
I have a table1(DueDate varchar2(20)). It has thousands of date data in different format with some bad data like characters.
eg.
YYYYMMDD,
MM/DD/YYYY,
MM-DD-YYYY,
M/D/YYYY,
'ABCD'
YYYYMMD,
YYYYMDD,
Now I had to get the dates that are past one week overdue. How do I do that?
Thank you for your help.
| stackexchange/codereview |
We're using log4net in a number of our services. Most of the time it works flawlessly. However, we'll occasionally see log4net "freezes" for a period of time before continuing to work normally. For example, the logs below shows that log4net was "frozen" for over 4 hours. We know this application is verbose, so we e... | stackexchange/codereview |
In the context of a java application using SQLIte to persist data I am using the Zentus JDBC driver. Thus I am using the java.sql package to acces my database.
I am facing some strange (in a an environment with several Connection objects on the same database) issues and I am pretty sure my problems come from non closed... | stackexchange/codereview |
<span style='float: left; margin: 10px; width: 60px; display: block;'>
<img style='border: 1px solid #FFF; width: 61px; height: 80px;' src='images/profilePhoto/thumbs/86.jpg'>
<br>
<a href='profil.php?id=86'>Megan F.</a>
<br><br>
</span>
<div style='margin-left: 90px;'>
<h1>(inget ämne)</h1>
<div>
Lorem ipsum dolor sit... | stackexchange/codereview |
I need to create a delegate to a non-static method of a class. The complications is that at the time of creation I don't have an intance to the class, only its class definition. At call time I do have the instance at hand. Thus I need a way to:
Build an "incomplete" delegat to member method, lacking the instance.
Call... | stackexchange/codereview |
I'm using the following regular expression
^[a-zA-Z0-9\',!;\?\$\^:\\\/`\|~&\" @#%\*\{}\(\)_\+\.\s=-]{1,1000}$
I know it's ugly, but so far it serves its purpose other than the backslash not being allowed as I think it should because it's escaped.
Also, I tried \\ instead of \\\ but got the same results.
Any ideas?
| stackexchange/codereview |
I've already found Postsharp... but I don't know how good it is.
| stackexchange/codereview |
How do I dynamically define a class in Ruby WITH a name?
I know how to create a class dynamically without a name using something like:
dynamic_class = Class.new do
def method1
end
end
But you can't specify a class name. I want to create a class dynamically with a name.
Here's an example of what I want to do but o... | stackexchange/codereview |
Please, help me.
I looked for exists questions and no found how i can get all published property of items (declared as Class) in dynamic array in delphi class (i use Delphi 7 IDE (i can't use other version))
I have this code:
TObjectList = array of TObject;
TSubClass = class(TObject)
private
FFirstName: strin... | stackexchange/codereview |
I want to be able to get intellisense in XSLT but for version 2.0 in visual studio
I know by default XSLT 2.0 isn't support - only 1.0 - but using Saxon API you can use XSLT 2.0.
I would love to get intellisense, i think this is possible by adding a XSLT 2.0 schema to visual studio but i am not 100% sure.
My question r... | stackexchange/codereview |
I want to create more than one form with a submit button, with each submit button having a different action/functionalities to perform.
How to achieve this? For now all the submit buttons takes the create controller method as its action function. How to override this ?. Can I give name to each submit button and redi... | stackexchange/codereview |
I'm trying to write 16 bit grayscale imagedata to a png using BufferedImage.TYPE_USHORT_GRAY. Normally I write to an image like so:
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
then:
image.setRGB(x,y,Color.getRGB);
to set the pixels, and finally:
ImageIO.write(image, "png", new... | stackexchange/codereview |
I want to use the same sort of UI style of Xcode has right above the editor pane, as show below:
I've browsed through all the Views in Interface Builder and can't figure out what type of view this is. At this point I'm merely referring to the bar itself; not to the controls nested inside the bar, though I will be add... | stackexchange/codereview |
The intention of MyTableCellEditor is to make a JTable cell behave like an Excel cell, IOW, entering a value after single clicking in a cell overwrites rather than appends to the existing value.
I didn't expect the following code to work on the first pass, but I did expect to be hit debug breakpoints in getTableCellEdi... | stackexchange/codereview |
Continuing on from ideas in: Are there any provable real-world languages?
I don't know about you, but I'm sick of writing code that I can't guarantee.
After asking the above question and getting a phenomenal response (Thanks all!) I have decided to narrow my search for a provable, pragmatic, approach to Haskell. I chos... | stackexchange/codereview |
class Song < ActiveRecord::Base
# Uses an integer of seconds to hold the length of the song
def length=(minutes)
write_attribute(:length, minutes.to_i * 60)
end
def length
read_attribute(:length) / 60
end
end
This is an easy example by rails api doc.
Is it possible overwrite all at... | stackexchange/codereview |
I would like to implement an NSStatusItem where the title changes over time. My ultimate goal is to display a countdown timer in the menu bar beside the image which I have set. Maybe I am going about this the wrong way. But I already have a string of characters which are constantly changing over time which represent... | stackexchange/codereview |
How to replace the first "AA" with "XQ" in the following strings
"AA1"
"AAAA1"
"AAQQ1"
"AAAAX1"
So the out put will be like
"XQ1"
"XQAA1"
"XQQQ1"
"XQAAX1"
i don not know how to do this. Can any one help me to do this?
| stackexchange/codereview |
I have an array of words. When the activity launches it displays a word, and then when you click the screen, it displays another random word from the array. I was able to get this far (with some help) but I'm a little stuck. When you click the screen to display a new word, how can I make sure the word hasn't been displ... | stackexchange/codereview |
All I need to know is how to put a PDF page into a UIWebView, and then retrieve the URL value (into an NSString) of a link when clicked. Can somebody please offer their knowledge on this? Thanks in advance.
| stackexchange/codereview |
I have a binary number 1011011, how can I loop through all these binary digits one after the other ?
I know how to do this for decimal integers by using modulo and division.
| stackexchange/codereview |
I want to get items from one container that don't exist in another. One container is IEnumerable, and another is an entity in DB. For example
IEnumberable<int> ids = new List<int>();
ids.Add(1);
ids.Add(2);
ids.Add(3);
using (MyObjectContext ctx = new MyObjectContext())
{
var filtered_ids = ids.Except(from u in ctx.... | stackexchange/codereview |
Put simple, I cannot find a way to easily display furigana in a JLabel.
For the record:
Furigana (振り仮名?) is a Japanese reading
aid, consisting of smaller kana, or
syllabic characters, printed next to a
kanji (ideographic character) or other
character to indicate its
pronunciation. In horizontal text,
yokog... | stackexchange/codereview |
Is there a short-cut in ReSharper to change more than one method's access-modifiers from something to something else?
Let's say I will choose methods:
public void Method_1(){...}
private void Method_2(){...}
private void Method_3(){...}
public void Method_4(){...}
And by using ReSharper I will change the acess-modif... | stackexchange/codereview |
I'm not particularly experienced with ClearCase, so if my terminology is incorrect please let me know.
In Git I can run the command:
git archive -o /tmp/dump.zip $SHA_FROM_THE_PAST path/to/dump
I want to do something similar in ClearCase.
The ClearCase repository contains two branches: main and snapshot_foo.
snapsho... | stackexchange/codereview |
I am looking for an open source repository built on php,and uses mysql ,right now I am using eprints but somehow i am not convinced with it,could any one suggest me the best stable open source repository(Data Management System)
Thanks
| stackexchange/codereview |
I have a control that has both ValidatesOnDataErrors = true and ValidatesOnExceptions = true. I also have something watching the Validation.Errors collection for this binding.
The user enters a value that's convertible (no exception) but invalid (IDataErrorInfo reports an error message). The error appears in the erro... | stackexchange/codereview |
I successfully created tables with style that salesforce provided. (like the one that highlighted on mouseover etc)
But I want the value of column to be a link to display detail info of the object.
When I don't create my own visualforce page, the table looks nice and the column
values (records) are all hyperlinked but ... | stackexchange/codereview |
Are there any counted semaphores in Linux?
What I'm wanting to do is keep track of how many readers a resource has.
| stackexchange/codereview |
I have a basic clisp function that I am making that just returns the number of atoms in a list. The issue I am having is I need it to increment for atoms in a list that is in the list, instead of seeing a list as 1 element in the list.
The real question I guess is how do you differentiate in your code whether an eleme... | stackexchange/codereview |
I'm new to java and android development. After spending few days working with java I started with android development. I've this question with regards to the Context class.
Context is a abstract class. Which cannot be instantiated and cannot be used to call methods unless it refers to a concrete subclass. Can someone t... | stackexchange/codereview |
I found a way to customize devise to use username to login instead of email address.
But actually I want to use combination :-
Enter username or Email: <text-box>
Enter your password : <text-box>
So how to achieve this ?
Actually we need to modify devise gem's configuration to support this.
for now I kno... | stackexchange/codereview |
I'm trying to collect software code metrics in my Java project on every cycle of continuous integration. I'm interested mostly in size-related metrics like number of classes, number of methods, function points, lines of code, etc. I would like to get a summary report with these metrics in some XML file. Later I will us... | stackexchange/codereview |
I am trying to use Ajax pagination in CakePHP and have read you can pass the variables along in the URL however I cannot seem to set the route. When I click on next I get an error about the category not existing (because of a custom validation method I created) because the route isn't being followed.
I would like the ... | stackexchange/codereview |
I have a jquery post:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="./js/jquery-1.4.3.min.js"></script>
<script type="text/javascript">
$(document).ready... | stackexchange/codereview |
I have just started working with Symfony. I downloaded the sf_sandbox and I am having trouble with $sf_params. When I try to use any methods on it, such as $sf_params->has('status') I get the error:
Notice: Undefined variable: sf_params
in
/var/www/sf_sandbox/apps/frontend/modules/login/actions/actions.class.php
... | stackexchange/codereview |
I wanted to create a timeseries plot where I would be able to accomodate more that 2 chart of timeseries. Tried searching a lot on the net, any ideas how to do it.
Regards,
| stackexchange/codereview |
I am trying to make it such that the layout looks like the following (crude) model lol:
--div----------------
| label TextBox |
| label TextBox |
| label TextBox |
|------------------- |
Here is what I have ...
.personalInfo_Form
{
width:600px;
margin: auto;
padding: 20px;
background-color: White;
}
.a... | stackexchange/codereview |
In a normal ASP.NET Website there is a Web Deployment Project that we can use to pre-compile our entire website and then we can safely upload this project to our production server in order to protect our code.
What can we do for ASP.NET MVC 2?
Link to it as is available today (RTM version)
Visual Studio® 2010 Web D... | stackexchange/codereview |
Why can't I save changes in an associated object saving a current object if attributes of the first one are represented by a value object?
For example, I have a simple e-commerce application. It use a Client model for manipulating clients
Client model
# db/migrate/<...>_create_clients.rb
class CreateClients < Active... | stackexchange/codereview |
I'm creating my very first 3D game and I've run into a couple of problems.
I read about AABB intersectioning and the idea of building trees from it, but the one thing that I couldn't understand is, if my "character" rotates during the game, the concept of the axis-aligned isn't preserved!
I've checked a couple of libra... | stackexchange/codereview |
i need to create a switch over cocos2d scene. i can create a uiswitch and add it to scene but
i really interested in cocos2d switch if there is any....
can anyone give me any idea??
| stackexchange/codereview |
I am having problem to give the width in Select index for a combobox in extjs.
My Code is below;
var inventorytbar = [
{
xtype: 'combo',
text: 'Filter Category',
hiddenName: 'local-states',
store: storeCat,
displayField: 'state',
typeAhead... | stackexchange/codereview |
Back from interview. I share with you and a good and precise answer is welcome.
The purpose, you have a static method, this method receive an IList<int> you have
to get back the values you can divise by 3 and make the code.
Constraint :
The original list (in the main) has a reference on the stack and the values on the... | stackexchange/codereview |
I have a view to create an "Instruction". I need to enter InstructionName, Description, and few Attributes to it. The number of attributes is determined at runtime. When "more attributes" is clicked I replicate a div which contains AttributeId(Dropdown) and AttributeValue(Textbox). The isntruction details are entered i... | stackexchange/codereview |
Anyone knows how to make code completion available in Dreamweaver CS5 with Zend Framework 1.10.*?
Also, using Discover doesn't work with my existing ZF application project opened.
Thanks in advance.
| stackexchange/codereview |
I have a custom list, I cannot delete the title column from it. Is there any way I can delete the title column. I know title column is used to edit the item itself. But when some one tries to insert a new record title column comes up. Is there any way I can atleast hide the title column.
Thank you
Hari Gillala
| stackexchange/codereview |
Are there any C++ libraries available to read HTML in Linux?
| stackexchange/codereview |
I have a question about performance of move constructor, pseudo C++ class:
typedef tuple<std::string, std::vector<double>, ...and more...> FooTupleMember;
class Foo1
{
public:
Foo1::Foo1 (Foo1&& object) :
member (std::move (object.member))
{
// ...
}
private:
... | stackexchange/codereview |
I am currently working on a sample class registration system for which I need to maintain class prerequisites. I have to display class prerequisites on page as a boolean expression.
Example:
If a student is viewing Class A, prerequisites must be displayed as (B AND C) OR D
I am not sure how to handle this.
Design so fa... | stackexchange/codereview |
I presume this is possible? Basically i am receiving using LINQ (LINQ2Entities Entity Framework) data and return it to an IQUERYABLE once i this data i need to transform it to XML in a Memory Stream and a physical file on the hard disk - streamwriter??
Does anyone know if this is possible?
Any help really appreciated
D... | stackexchange/codereview |
#!/usr/bin/env perl
use warnings;
use 5.12.0;
use Term::UI;
use Term::ReadLine;
my $term = Term::ReadLine->new( 'brand' );
my @choices = ( qw( blue red green black white ) );
my $reply = $term->get_reply(
prompt => 'What is your favorite color?',
choices => \@choices,
default => 'blue',
);
say... | stackexchange/codereview |
This is more of a theoretical question, and I'm stuggling to find anything that mentions it outside my lecture notes.
In a the 3 state process model for process management, you have 3 states, running, blocked and ready. So my question is when can a state transition of blocked to running occur, without the process firs... | stackexchange/codereview |
I'm getting the infamous "'git' is not recognized as an internal or external command, operable program or batch file" after installing msysgit for Windows.
This is not the first time something like this happens; it happened when I tried to set up Python, too, but back then, I found the relevant directory to point my py... | stackexchange/codereview |
Are there any free libraries I can use to do that ?
Thank you.
| stackexchange/codereview |
Has anyone used ffmpeg on iphone? How do I go about compiling ffmpeg on iphone? And on OS X?
| stackexchange/codereview |
while running an application written in windows on linux, i encountered a problem-
i can't edit the cpp file of widget. all the other classes are editable.
The error message appears on the top of the screen and looks like that:
| stackexchange/codereview |
A friend of mine with the iphone OS4 has pointed out that my app doesn't show a password dialog on returning to my app, after pressing home and returning to my app.
He briefly mentioned willEnterForeground ???
At the moment I have a text field on my first screen, but if I'm going to need a password alert view I may as... | stackexchange/codereview |
Is the following Thead Safe in java?
public class TestDCL{
private static final Semaphore lock = new Semaphore(1);
private Object instance;
public Object m(){
if(instance == null){
lock.acquire();
if(instance == null){
instance = new Object();
}
... | stackexchange/codereview |
how to create pagination like stack overflow site 1 2 3 4 5 … 69377 next in cakephp.where to write and how to write code. please suggest complete code
| stackexchange/codereview |
I developed a J2ME project using sun java wireless toolkit 2.5.2_01 for CLDC.
In my project I display a form namely TableForm. Inside that form I display a table CustomItemTable. This table I created using javax.microedition.lcdui.CustomItem.
The table ("CustomItemTable") had the buttons "EDIT CELL", "SAVE CELL".
What ... | stackexchange/codereview |
We are using a js library that is not yet compatible with IE9. In order for our website to render correctly, we have add the following meta tag until the library is updated:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
The doctype is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/... | stackexchange/codereview |
I have a Select list on my page, and based on which item is selected (each item is a part number), the text on the page that describes the part's dimensions should change. Each part's dimensions (Diameter, Height) are in a db. I'm calling the query using cfquery.
The values in the Select list are the part numbers in m... | stackexchange/codereview |
What is a good C compiler for OSX or Windows XP or DOS? I would like to make a GUI shell for DOS.
Also what is a good pascal compiler for these platforms?
| stackexchange/codereview |
I'm trying to get the line number of a DOMElement object in PHP - the documentation says DOMElement extends DOMNode which implements the getLineNo() method, however, when I try to use this method I get:
Fatal error: Call to undefined method DOMElement::getLineNo()
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.