instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Hi
We are planning to have clustered setup for WebLogic domains and our application size is medium.Can anyone please advice which deployment mode is suitable for production.Will it be stage/nostage/external stage.Please let me know if possible why a particular mode is suitable
thanks
| stackexchange/codereview |
Possible Duplicate:
How to have Moose return a child class instance instead of its own class, for polymorphism
Suppose I have two related classes MyClass::A and MyClass::B that are both subclasses of MyClass. I would like the constructor for MyClass to take a filename, read the file, and based on the contents of the... | stackexchange/codereview |
I'm still learning regex (obviously) and i can't figure it out, and i want to do it the right way rather than doing it the long way. How can I:
Find all <p> or </p> and replace with a \n except the first <p> and last </p> in which case replace with nothing, just remove, and for <br>, <br /> and <br/> replace with \n al... | stackexchange/codereview |
I was looking around and cannot seem to find a way to create a simple form with no submit button (enter only) that checks to make sure that the information typed in is really a email address. Any help would be appreciated.
*Disclaimer I know almost nothing about PHP. I realize this is very easy, I just do not understan... | stackexchange/codereview |
is it possible to use ShellExecuteEx to copy or cut a group of files in a given directory ? The Windows function works fine on a single file but I can't find anywhere any tips over the subject (with a file list).
I don't expect any alternative method ( such as xcopy) because I need the windows shell function undo/redo ... | stackexchange/codereview |
Is the Minimax's evaluation function an Heuristic function?
| stackexchange/codereview |
How do I create a resource bundle to use in an iPhone/iPad app? Is it simply a folder with the .bundle extension or do I have to do something else to make it work?
Are there any special considerations for Universal apps (ie: do I have to create separate bundles for each platform?) and localized resources?
I would like ... | stackexchange/codereview |
How and where should we use a Static modifier for:
1. Field and
2. Method?
For example in java.lang.Math class, the fields methods like abs(), atan(), cos() etc are static, i.e. they can be accessed as: Math.abs()
But why is it a good practice?
Say, I don't keep it static and create an object of the class and access i... | stackexchange/codereview |
My question today relates to the android home screen and where it stores icon / widget positions. Specifically, I am interested in accessing the positions and sizes of any icons that are currently being displayed. I have, so far, been unable to find a method of retrieving the positions of other applications but i fig... | stackexchange/codereview |
I have a proprietary application that uses an extension to handle cryptography. To encrypt a string I feed it Exponent, Modulus, Base and string as parameters. It returns the encrypted string.
I need to be able to replicate this functionality in a c# application that talks to the proprietary application. I'm unsure whe... | stackexchange/codereview |
I want to do something like this in Perl:
$Module1="ReportHashFile1"; # ReportHashFile1.pm
$Module2="ReportHashFile2"; # ReportHashFile2.pm
if(Condition1)
{
use $Module1;
}
elsif(Condition2)
{
use $Module2;
}
ReportHashFile*.pm contains a package ReportHashFile* .
Also how to reference an array inside module base... | stackexchange/codereview |
I think I'm missing something basic about Tkinter.
What would be the correct way to create several windows with the same hidden root window? I can get one window to open, but once it's closed subsequent ones show up blank, without any widgets in them. I've also noticed if I leave the root window visible, it disappears ... | stackexchange/codereview |
I need to find the most optimal solution using Regex to find URL's inside a block of HTML and add a new attribute Name="true" inside the tag.
Below is an example of HTML (which can contain embedded JS), I just need to add the new attribute Name="true" to any URL and NOT effect any embedded JS file.
Example HTML :
<H... | stackexchange/codereview |
I would like to understand how Simulink simulation engine works. Does it use a discrete event simulation mecanism (then how continous time is handled ?) ? Does it rely on a static cycle-based code generation ? Or ?
| stackexchange/codereview |
I have a nav, each link in the nav just appends a hashtag on the existing URL when clicked, for live filtering, etc. with the use of jQuery.
I want to append the SAME current hashtag to a series of links within a div further down the page.
For example, I've clicked "work" and my URL now looks like:
http://www.domain.co... | stackexchange/codereview |
the Android phones in Slovakia have a custom locale - en_SK and cs_SK. Language is either Czech or English, location is Slovakia. Now I would like to have strings that target these locales. The default approach is to create a folder "values-CountryCode", for Czech Republic it's values-cs.
But I get a build error if I ... | stackexchange/codereview |
Say i have the following class :
class Abc {
int id;
public:
int getID() { return id; }
int setID(int id) { this->id = id; }
};
Is there any logical error in this ? I seem to be getting unexpected results (read : wrong values of id). I know this is not the way to write a getter .. but still there s... | stackexchange/codereview |
I have two tables, ProblemChildren and DailyTable. ProblemChildren consists of an ID and a name. DailyTable consists of a ID, name, and date_hit.
Right now, I'm displaying all ProblemChildren.name where it exists in DailyTable. So if the name "Mike" in ProblemChildren does not have a record in DailyTable, then his... | stackexchange/codereview |
I would like to be able to detect when a user types a key in the Search Dialog. I plan on using this to hook in to custom suggestion functionality.
Note: The built-in Search Manager custom suggestions functionality won't work for me because I need to customize the layout of the suggestions.
| stackexchange/codereview |
Here lately I've been tinkering around with my own languages as well as reading various writings on the subject.
Does anyone have any good advice on how, in C (or Assembler), do you program the concept of the Object Class and/or the concept of Generics into a language. (referring to the Java implementations of Object ... | stackexchange/codereview |
In Drupal 6, I would like to have certain Content Types display Error 404, when accessed. I don't want them indexed by search engines or being accessible to users. They are used to store data, such as photos or other attachments.
I've tried setting node-[content type].tpl.php to
<?php
return drupal_not_found();
but ... | stackexchange/codereview |
I am using Ajax to do a live search and all i want is the data t be displayed in a div called "results". However when im ding the search, it displays the search form again and then the results div. How do I go by solving this?
Here is the ajax code:
function finding(str)
{
if (str.length==0)
{
doc... | stackexchange/codereview |
Given 2 lists, how can you produce an output of a 3rd list which has its elements as an interleaved set of L1 and L2? If they are uneven length, nil should be inserted for holes. On a second note, how can I reverse a list? I am super new to LISP and simply modifying existing code... I'd really love to have a good expla... | stackexchange/codereview |
This is what I want an user to be able:
Upload ANY file to the server (attachment) to the uploads folder
Be Able to download it afterwards
So I have created this dir with the following .htaccess
Allow from all
DirectoryIndex .x
php_flag engine off
Options -Indexes
Options -ExecCGI
AddType text/plain .html .htm .shtml... | stackexchange/codereview |
Goal: On submission of a form to add/update/delete objects an email is sent out with the current contents of the DB object and the new contents of the DB object in html.
Example
Object Title was oldTitle and has been changed to newTitle
Object Date was oldDate and has been changed to newDate
My assumption this can... | stackexchange/codereview |
I am simply trying to ignore an unsigned SSL certificate and am I am directly following examples I found online of how to override two delegate methods of NSURLCOnnection as follows to allow my app to use an HTTPS connection to a server which has a self-signed certificate:
- (BOOL)connection:(NSURLConnection *)connecti... | stackexchange/codereview |
I have a single program used to interact with a joystick. It uses conditional compilation to specify a specific joystick. We do this right now by just hard coding the correct flag into the Makefile.
I'd like to make it so it uses a different flag based on the command given to the Makefile. So for example, I currently h... | stackexchange/codereview |
Due to some messed up legacy code,
I have
$path = [OS specific base DIR name][hardcoded Linux file path]
So on Linux, it is something like
$path = /common/path/to/dir/pathtofile/name.extension
but on Windows it becomes this
$path = C:\path\to\dir\pathtofile/name.extension
Some of the code fails on Windows because it... | stackexchange/codereview |
I am trying to do a select which would return a blank '' when a join is not successfull
(when a blank '' or a '-' is
encountered in column)
and return column value when it is successfull. I am using case for this but not succeeding until now. Anyone can advise a better query ?
select a.EmpName,a.deptcode,(a.deptco... | stackexchange/codereview |
I am looking for an XML parsing solution for Android besides the built-in kXML pull parser. I am trying to parse a large (4MB+) XML file downloaded from a server and the kXML parser throws an OutOfMemory error after trying to allocate a 1MB+ byte array while parsing. A good streaming XML parser shouldn't be allocating ... | stackexchange/codereview |
i done my prolog coding and no error when run it. but still cannot get the output i want. so i want to ask where is the problem. my coding is like bellow
even_member(X, [X|_]).
even_member(X, [_|Tail]) :-
0 is X mod 2,
write(X), nl,
even_member(X, Tail).
the output i need it is when key in even_member(2,... | stackexchange/codereview |
I have some makefile:
$(PROGRAM_NAME): index.o
@echo "linking"
@echo $(index_o)
//linking
export index_o:=.
index.o:
$(MAKE) -C some_dir index.o
at some_dir makefile
export index_o:=$(index_o)/index.o
index.o:
@echo "compiling"
@echo $(index_o)
//compiling
output:
compiling
./index.o
link... | stackexchange/codereview |
I've set up an SVN repo and I've downloaded the free version of Versions. Now, how do I get started with Versions? I get an error when I try to create a repo bookmark.
| stackexchange/codereview |
In my controller class, I initialize two instances of a model class (whose header is properly imported into controller class) with an NSButton. The model is really simple, just 4 members and one method - attack(). Making a silly text game!
- (IBAction)startGame:(id)sender {
Combatant *hero = [[Combatant alloc] in... | stackexchange/codereview |
From this forum entry it appears that fb:chat-invite is not a valid xfbml
tag, so to use it one needs to use serverfbml. However testing out
<fb:serverfbml>
<script type="text/fbml">
<fb:date t="1216170865" format="long_numeric" /> hello again
</script>
</fb:serverfbml>
results in
<fb:serverfbml> requires the ... | stackexchange/codereview |
I've searched through all of the responses on SQL Developer and I haven't found a response that matches this question. I need to be able to see the SQL for a table/view etc by clicking on the sql tab, but for now it simply shows me a blank screen. Has anyone else solved this? It works fine in toad and I can see the ... | stackexchange/codereview |
Simply put: the jQuery object is a composite pattern. How do I add jQuery objects to it?
An example:
var e1 = $('#element1');
var e2 = $('#element2');
...
I know want to create a new jQuery object jq such that it is composed of e1 and e2. I want to be able to do something like the following:
var jq = $();
jq.addInjQue... | stackexchange/codereview |
I want to dump a process image on the disk and then execute it
i listed the process modules
i used readprocessmemory to read the memory range of the exe
but when i try to execute it fails.how can i solve this?
thanks
| stackexchange/codereview |
I have Author and Book models.
An Author has many embedded Books.
Can I query the embedded Books, or do I have to fetch Authors first to get Books?
| stackexchange/codereview |
how can I assign a numeric value instead of a string to specify the color of my button ? What the exact syntax ?
button = tk.Button(itemFrame, text="", bg="red", width=10, command=callback)
i.e bg = #FF0000
thanks
| stackexchange/codereview |
Got an error while trying to invoke the webservice
"System.NullReferenceException: Object reference not set to an instance of an object."
Error on this line
if (Authentication.Username == "x" &&
Authentication.Password == "y")
what does this mean?
[WebService(Namespace = "https://domain.com")]
[WebService... | stackexchange/codereview |
this expresses what I would like to do but obviously does not work. I think what I am trying to do is clear:
Get a cell, get its dependencies count, and output all of them.
Thanks in advance for any input
Sub Extract()
Dim i As Integer
For i = 1 To Workbooks("myBook.xls").Wo... | stackexchange/codereview |
List<Double> constants = new ArrayList<Double>() {{
add(1.4);
add(0.4);
add(1.2);
add(2.4);
add(4.2);
add(5);
add(6.0);
add(7.0);
}};
| stackexchange/codereview |
I am trying to test to see if an NSString has the letters "PDF" as the first 3 letters:
if ([[[profiles stringForKey:@"response"] characterAtIndex:0] isEqualToString:@"P"]) {
//TODO
}
I started with this approach to see if I could at least narrow it down to those strings that start with "P" but I a... | stackexchange/codereview |
I use Visual C++ (7.1 and 8.0) on huge C++ project. The solution contains thousands of files. Visual Assist helps in jumping to function and class definitions. The problem is that it sometimes becomes too slow. I just can't edit a single letter without delay.
Is there some alternative to this environment? I mean someth... | stackexchange/codereview |
I have exim mailserver on my dedication server.
I'm trying to send about 800 mails at once with zend_mail
But only about 200 of them sending
I have no php errors in error_log
I tried to log if it too slow and exceed max time execution
2010-10-12 15:16:32 - Going to send 795 letters
2010-10-12 15:16:37 - 100 letters don... | stackexchange/codereview |
how would I go about passing an image from an ASMX webservice, through to my silverlight front end? I am using .Net 4.0 and Silverlight 4 front end, and SQLServer 2008 to store the image.
| stackexchange/codereview |
Is the graphing portion of Apple's "Stocks" iPhone application available to developers?
My guess would be that it is not. If I am right, on a rough scale on 0-100, how difficult would it be to reproduce? (I know this is a silly question, but anyway. Just want some idea.) Also, what framework do you think would be the m... | stackexchange/codereview |
i am aware of android BROADCAST_PACKAGE_REMOVED for notify when any application is uninstalling from device.
Now it is possible that when i uninstall one application and that application do some work before and uninstall.
e.g: my application work with android contact if application uninstall at that time i want to cha... | stackexchange/codereview |
I have a longstanding C# .NET 3.5 application 'freeze' which I am at a loss with. There are two C# executables. One has a full UI, the other runs as a tray app. They both communicate via WCF to a third service app, also running in the tray.
Randomly the UI thread of main Winforms app will deadlock. Mysteriously if I q... | stackexchange/codereview |
How do I loop through all objects in a NSMutableDictionary regardless of the keys?
| stackexchange/codereview |
I have a pygtk application and would like to provide a text-based fallback mode for it. When mporting gtk without a X display available I see only a GtkWarning on stderr but no exception I could take advantage of and checking for DISPLAY seems like an ugly hack. How can I implement this?
| stackexchange/codereview |
Shared Drive Name is not accessible. You might not have permissions to use this resource.
Attaching the hostmachines drive (D:) to the virtual machine with 'settings' throws error:
Shared Drive Name is not accessible. You might not have permissions to use this resource."
Other vm's have a link to that drive and are wor... | stackexchange/codereview |
We have a .net winforms application accessing a SQL Server 2008 database over .net web services. Occasionally our application behaves very slow, but after restarting the SQL Server service, the application performs much faster.
We do have automatic scheduled job that runs every night to clear buffer and procedure cach... | stackexchange/codereview |
I'm getting a text node (node.nodeType == 3) returned from the getSelection range, eg.:
var selectionRange = selection.getRangeAt(0);
var startContainer = selectionRange.startContainer;
This startContainer usually is a text node, eg the following html:
<p>Paragraph in <u>parag</u>raph.</p>
Would result in the text no... | stackexchange/codereview |
The Imaginary Scenario:
The Affiliates earn money on my website by selling items/services/widgets to their clients. You can think of it as a simple affiliate program. This money is stored in a single account until the Affiliate requests their money.
The Affiliates don't want to wait for a check to come in the mail; the... | stackexchange/codereview |
I created an Matrix object (like the math Matrix, a 4x4 block of numbers for instance) and it works fine, can set row,col,variable just fine, but, I cant have more than one of the same object, I have it creating an ArrayList of a dozen Matrix objects, each with the three variables, but when I call changeVar(Matrix x,in... | stackexchange/codereview |
Hey all, im not sure if this is possible but i am looking to add a heading to a query's output. The best way to describe this is just by showing what i would like the output to look like:
[heading here]
<skip row>
[Another Header here]
MemebersID | FirstName | LastName | Email | OrderDate
05466 Bob ... | stackexchange/codereview |
I need to check whether a server is up or not?
If down then i need to send an email
And this task should be repeated in every 30mins.
I have to do this using batch file.
| stackexchange/codereview |
Can I Store more than 1 type in the Clipboard? Eg. like Text & Image. say the user pastes in a text editor, he gets the text and if he pastes in something like photoshop, he gets the image. I thought it was possible but I tried
Clipboard.Clear();
Clipboard.SetText(img.DirectLink);
BitmapImage bitmapImage = new Bitmap... | stackexchange/codereview |
there are methods in program language in c++ like
cout<<"hello world" .
when compiled does it invoke a system call to perform the actual work OR is it compiled directly into binary code and get executed by the kernal ?
if it use the OS API , different platforms using different OS API, how can the language be the same... | stackexchange/codereview |
From what I understand about Windsor Container and MVC applications, is that there should only be one instance of the container and it's usually registered in Global.asax for the running life of the application.
I've separated out my business layer in to a separate assembly from the web application and obviously I can'... | stackexchange/codereview |
When I approach Java problems, I use the collection pattern. However, doing it in Delphi is quite a nightmare since there is no Integer object to handle things.
I need a data structure that holds numbers. I want to be able to add numbers, remove numbers, and check the contents of the collection, and each number must be... | stackexchange/codereview |
I'm new to MVC and Entity Framework, so this may be a relatively simple answer, but I've tried searching around so far and no luck.
I'm using the most recent versions of both tools to my knowledge (MVC 3 Beta and Entity Framework 4.0)
I'm just trying to set up a quick example. Logically, I'm dealing with events -- in t... | stackexchange/codereview |
I want to test air applications and air libraries using flexmojos 3.9-SNAPSHOT.
However, although flexmojos does indeed has support for air, it tries to run the swf generated by the build using flash player, and as I need to use air native libraries I wanted to run the tests using adl (AIR debug launcher).
To do this, ... | stackexchange/codereview |
I want to show the user a progress dialog until a particular task is complete.
For example, after the user enters username and password it takes some time to connect as the username and password are validated. I want to show the progress bar to the user while waiting.
| stackexchange/codereview |
One thing that is driving me nuts is how Javascript fails silently in many different situations.
(removed example because it confuses the point of my question)
Many times I have come across an error that will give an error message when typed into the Firebug console, but when it runs within the page script, it fails si... | stackexchange/codereview |
The question is about JAXB Map marshalling - there is plenty of examples on how to marhsall a Map into a structure like follows:
<map>
<entry>
<key> KEY </key>
<value> VALUE </value>
</entry>
<entry>
<key> KEY2 </key>
<value> VALUE2 </value>
</entry>
<entry>
...
</map>
In fact, this is nati... | stackexchange/codereview |
I'm using ExtJS 3.2.1 and I need a component almost identical to the bundled HtmlEditor, with one exception: it must start editing the HTML source code directly. The reason I don't use a normal TextArea is that the user should be able to preview the result of his actions before submitting.
I've tried calling toggleSour... | stackexchange/codereview |
I'm trying to create a simple program that scans for a bluetooth headset (I'm testing with a PS3 headset) and then connect to it. I'm using the code from the bluetooth chat program example. However I cannot get it to connect to anything. It is giving me an I/O Exception when it gets to the connect().
private static ... | stackexchange/codereview |
All I want to do is setup it up, so that after I make changes in VS2008 (local machine), I send those changes to the dev server. Also, I would like it so my other coworkers can do the same. But I don't seem to be able to get this working.
Please help!
| stackexchange/codereview |
I came across these two lines in osdev wiki.
nasm kernel.asm -f bin -o kernel.bin
dd if=kernel.bin of=/dev/fd0
It copies the kernel binary to a flopy. Does this means the flopy becomes bootable? I don't want to create a bootable flopy , instead of that I want to create a iso image by which I can boot in vmware. i... | stackexchange/codereview |
I have a gnarly navigation structure that can be generalized as:
<ul id="navigation">
<li>
A
<ul>
<li>
B
<ul>
<li>C</li>
</ul>
</li>
<li>
D
<ul>
... | stackexchange/codereview |
The text on the top has the opacity of 0.5. The other image has a color of #dddddd (hex).
This is the code I am using:
<p style="font:60px Arial;font-weight:bold;opacity:0.5">Hello!</p>
<p style="font:60px Arial;font-weight:bold;color:#888">Hello!</p>
The text on the top has jagged edges. I'm wondering why that is... | stackexchange/codereview |
I have one select:
select * from table1 where col1=10;
and another select:
select * from table1 where col1=11;
Sql parser parses them as different sqls..
I want to make SQL PARSER parse the statement once and just change the parameter in the where clause..Can I do that? Do have any idea ? please share it with me.. th... | stackexchange/codereview |
I want to calculate the center-of-mass using the map function. I don't want to use for loops. Help with bottom two lines?
class Obj():
def __init__(self, mass = 0., x = 0., y = 0.):
self.mass = mass
self.x = x
self.y = y
# Create List of Objects
objList = []
n = 0 ... | stackexchange/codereview |
I'm writing a pseudo shell program which creates a child from a parent process. The parent process waits for the child to finish before continuing. My forking code looks something like this:
if(fork()==0)
{
execvp(cmd, args);
}
else
{
int status = 0;
wait(&status);
printf("Child exited with status o... | stackexchange/codereview |
I am setting a cookie's expiration time 10 mins which is working fine in local system but on server, it's not working.
| stackexchange/codereview |
I am trying to get a simple Cloo program to run but it is not working, can anyone tell me why?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Cloo;
using System.Runtime.InteropS... | stackexchange/codereview |
All,
I have been going through a lot of sites that post about the performance of various Collection classes for various actions i.e. adding an element, searching and deleting. But I also notice that all of them provide different environments in which the test was conducted i.e. O.S, memory, threads running etc.
My ques... | stackexchange/codereview |
I want to launch an application in the phone by clicking its link in the browser..How can I do this???
| stackexchange/codereview |
I'm trying to generate two random numbers, one for a row and one for a column.
In this exact instance, it is a multidimensional array with 4 rows and 4 columns. Thus, the number generator can use the values 0 to 3 for both row and column.
I must also make sure that there are no duplicate points, so if [0,0] is chosen t... | stackexchange/codereview |
how to get the column names(dynamically without hardcoding the columnheaders) of a table from database using collections in java
| stackexchange/codereview |
I have a class called Global that derives from HttpApplication.
Oddly, I see a lot of methods inside Global that look like:
void Application_Start(object sender, EventArgs e)
{
}
The code is definitely executing inside this method, so the method is being called from somewhere, but where? The methods aren't marked over... | stackexchange/codereview |
I can't make this seemingly simple call on my DomainService compile. I keep getting 'Operation named 'ComposeNewOrder' does not conform to the required signature. Parameter types must be an entity type or one of the predefined serializable types.'
Am I missing something here, should I be doing it in another way or is i... | stackexchange/codereview |
Top: IE8
Bottom: IE7
How do you fix IE7 so it doesn't split my anchor into two pieces? I know display:block and float:left would solve this, but I'd rather have it be inline. This way, I can have text both to the left and right of any arbitrarily placed anchor button.
#launchChrome {
font-weight: bold;
... | stackexchange/codereview |
In PowerShell, say I want to delete line 5 from a 10 line text file using the line number, how is this done?
| stackexchange/codereview |
I'm trying to write an iPhone app that takes PNG tilesets and displays segments of them on-screen, and I'm trying to get it to refresh the whole screen at 20fps. Currently I'm managing about 3 or 4fps on the simulator, and 0.5 - 2fps on the device (an iPhone 3G), depending on how much stuff is on the screen.
I'm using... | stackexchange/codereview |
How we can write in a file through a j2me code ?
| stackexchange/codereview |
I'm wondering if I can do something like this in c#:
public CustomerManagerScreen()
{
[TestAttirubute("CustomerManagerScreen_Load")]
private void CustomerManagerScreen_Load(object sender, EventArgs e)
{
CustomerLoad();
}
}
as you can see, method ... | stackexchange/codereview |
I used to work with Jquery and Google maps API, and i've found some answers here, but i didn't found any workable examples. Please if you have one, or just give me a link.
| stackexchange/codereview |
Best way to show the SQL trace of a LINQ query to Entity Framework 3.5?
I am using ASP.net and EF 3.5.
Dim dbo As Web.Portal.RBMEntities = New Web.Portal.RBMEntities
Dim Query = From RoleAllocations In dbo.RoleAllocations Where RoleAllocations.user_id = _ID And RoleAllocations.expire_date > Today Select RoleAllocation... | stackexchange/codereview |
On a button click, I want to display a progress bar, When it completes 100% want to load something,For this stuff i want to use jQuery as well as css.
I need some help, how to implement it.
| stackexchange/codereview |
Could someone please tell me how to find the occurence of a character in a string? I have to check the number of lines getting displayed (using the br tag) in a dynamically created div. Thanks in advance,
Ashriya
| stackexchange/codereview |
I'm getting crash reports from my app in the marketplace throwing an IndexOutOfBoundsException outside of my code with the following stack trace:
java.lang.IndexOutOfBoundsException: charAt: -2 < 0
1. android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:110)
2. android.text.TextUtils.getCapsMode(TextU... | stackexchange/codereview |
I use the following code to bring up a view
-(IBAction) openSomeView{
SomeView *sv = [[SomeView alloc]initWithNibName:@"SomeView" bundle:nil];
[self presentModalViewController:sv animated:NO];
[sv release];
}
How can I detect if this view has been created already and if so, then just show it now create a new object?
T... | stackexchange/codereview |
I've got Flash content that needs to run within a web page off a CD. It works fine if I change the security settings in the Flash Global Security settings screen but that can only be accessed online. So...
Can the security violation be overcome with a cross-domain XML on the local drive somehow?
Can the Global Securit... | stackexchange/codereview |
I have a Java EE application and I use Hibernate. The domain objects, I changed the List / ArrayList to Set / HashSet, because it is better to use Sets.
But in my Dao implementation I run into a problem:
public Set<Person> getAllPersons() {
SessionFactory sessionFactory = HibernateUtil.getSessionFactory();
Sess... | stackexchange/codereview |
I wrote a simple snippet to load dynamically pages parts as follows:
function LoadParts(container) {
$("a._Part", container).each(function () {
element = $(this);
url = $(this).attr("href");
$.get(url, null, function (text, status) {
var c = $(element).paren... | stackexchange/codereview |
I've got the selector below:
$("#<%=GridView1.ClientID%> td:nth-child(5)").hover('doSomething)
Which is selecting the 5th td that is generated by a GridView. This is working fine.
My problem is I have paging enabled, and its also selecting the < Prev 1 2 3 Next > at the bottom, any ideas how to exclude this?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.