instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
If in-order traversal of two binrary trees (not binary search trees) are the same, does it guarantee that the two trees are the same?
if answer is no, then what about both in-order and pre-order traversal are the same?
| stackexchange/codereview |
I listen to Python411 but is there any other great podcasts out there for Python and Django?
| stackexchange/codereview |
I've used Perl a bit for small applications and test code, but I'm new to networking and CGI.
I get how to make the header of a request (using CGI.pm and printing the results of the header() function), but haven't been able to find any info on how to access the headers being sent to my CGI script. Could someone point m... | stackexchange/codereview |
I want to be able to keep a log of every sql statment that edits a specific table, and I think the best way would be with a trigger. However, I don't know how to get the statement that triggers the trigger.
For example if I run:
$sql = "INSERT INTO foo (col_1) VALUES ('bar');"
I want to be able to craft an insert... | stackexchange/codereview |
I'm storing IPv4 addresses in a "int unsigned" column type with inet_aton. [Am I doing this right? And is using "unsigned" necessary?] This particular column is indexed as well. Since there will be millions of rows and multiple rows containing the same IP throughout the entire table what will be the fastest way to sear... | stackexchange/codereview |
I have a function (let's call it foo($array_reference, ...)) that expects an array reference among other parameters. I want to have foo shift the array reference off the list of parameters passed to it directly to an array, without having to shift it off as an array reference and then separately convert that to an arra... | stackexchange/codereview |
I have a problem to bind list of h:selectBooleanCheckbox to my bean.
Anybody helps ?
This is not working:
<ui:repeat value="#{cartBean.productsList}" var="cartProduct" varStatus="i">
<h:selectBooleanCheckbox binding="#{cartBean.checkboxes[i.index]}" />
</ui:repeat>
public class CartBean extends BaseBean {
public ... | stackexchange/codereview |
I am using a grid view in my asp.net application. In one column i need to display description(minimum 5 characters. Maximum 255 characters).i am using a label to hold description in that grid view.
But my problem is that if the description is larger it stretches in the browser and show it in one line. I want to displa... | stackexchange/codereview |
THe following error appears
:info:build Compiling contrib/hashes.cc to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/hashes.opic
:info:build Compiling depcache.cc to /opt/local/var/macports/build/_opt_local_var_macports_sour... | stackexchange/codereview |
I am trying to extract, say, the latest/most recent 5 threads in the X section of my Forums and have it 'posted' on my website with a link so the viewers can go directly to the thread instead of having to browse the forum or what not.
I've seen and read some tutorials online but...in all honesty, phpbb seems like a mes... | stackexchange/codereview |
I have an itemtemplate for a listbox, that is bounds to objects in a list. The properties of each of the objects in this list is bool, List< string >, string, string.
Bool is mapped to the checkbox, the List< string > feeds the dropdown on each of the rows, and the remaining two strings are mapped to each of the textb... | stackexchange/codereview |
I want to execute the following SQL
select count(*) as myCount from user group by name;
I came up with the following criteria for the same
DetachedCriteria.ForClass(typeof(UserDTO))
.setProjections(Projections.ProjectionList()
.Add(Projections.rowCount(),"myCount")
.... | stackexchange/codereview |
One of their product called Live2Phone Personal TV attracts me lot,
anyone knows how it's implemented ? What devices does it require to work?
| stackexchange/codereview |
Now I have an around 30M app, when I need to make an update for the app ,I want to update only a little part of the app,what shall I do with the app? Should I make a updating app for the app or should I make it like downloading the whole new app every time?
I forgot to say that it is an app running on the Mac OS, not i... | stackexchange/codereview |
If I have an active timeout running that was set through
var t = setTimeout("dosomething()", 5000)
Is there anyway to pause and resume it?
Is there any way to get the time remaining on the current timeout?
or do I have to in a variable, when the timeout is set, store the current time, then we we pause, get the differe... | stackexchange/codereview |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Taking data from Main Thread\n->");
string message = Console.ReadLine();
T... | stackexchange/codereview |
I have a construction that works well in all browsers except iPhone Safari, it sticks to left side though it's not supposed to.
.home{width: 980px; margin: 0px auto 0px auto;}
any advice?
| stackexchange/codereview |
I am trying to create a fully-automated test suite for a web application, using Selenium RC and test cases written in Java. However, I have encountered a few problems that I have not been able to solve. Please let me know if you have a suggestion about any of these issues.
Single window mode. I would like to run singl... | stackexchange/codereview |
I have a bash shell script that requires ctrl-D to break out of the terminal.can anyone tell me how to use it in the shell script
example
ssh host last --->displays the list of users who were logged on to that host
I have different hosts the output is appended to one final and when I'm executing this particular shell... | stackexchange/codereview |
I want to build a program that prints the current screen (every few seconds) and searches for symbol in it.
I already have the function that knows how to find a given symbol in a larger function, however I do not have the followings:
How can i capture the current screen (print screen).
How do i convert the picture int... | stackexchange/codereview |
I am currently rewriting one of my programs. It has a heavily recursive function which solves peg-solitaire:
int solve(int draw) {
if (finished())
return true;
//loop over every possible move (about 76 long values)
//do a move (access the board, which is a long value)
if (solve(draw + 1))
return true;
... | stackexchange/codereview |
I need to have some delegates in my class.
I'd like to use the interface to "remind" me to set these delegates.
How to?
My class look like this:
public class ClsPictures : myInterface
{
// Implementing the IProcess interface
public event UpdateStatusEventHandler UpdateStatusText;
public delegate void Update... | stackexchange/codereview |
I'm sure this question has probably been answered before, so I apologize, but I wasn't able to find the proper search terms to find the answer.
Given the following code example, does db.GetRecords().Any() get executed?
string s = "Z";
bool x = s.IndexOfAny(new[] { 'A', 'B' }) > 0 &&
db.GetRecords().Any();
| stackexchange/codereview |
i want to refresh my expandablelistview , but it seems there is no way to use notifyDataSetChanged()??
how can i refresh my expandablelistview?? thx
| stackexchange/codereview |
I've just set up a proxy and run all my request through that proxy.
I investigated several different applications: they pass login and password pair raw, i.e. I can grab them from POST-request parameter.
How should it be implemented to make it more secure? (I haven't investigated gmail and facebook yet, but I think th... | stackexchange/codereview |
I have a SQL query like:
select column1 as a, DECODE(x, 1, x1, 2, x2) as column2,
DECODE(y, 1, y1, 2, y2) as column3 from test
And I want to select the following commas (denoted with **,**):
select a as column1 **,** DECODE(x, 1, x1, 2, x2) as column2 **,**
DECODE(y, 1, y1, 2, y2) as column3 from test
I am ... | stackexchange/codereview |
I want to know no. of active users on my website with sessionstate set as sqlserver.
And what if a person closes his browser then how to maintain the user count?
Any help appreciated.
Thanks in advance
| stackexchange/codereview |
I'am trying to get a menu item to show in the 'primary-links'.
i've read this, but that is not working. What am I doing wrong?
/**
* Implementation of hook_menu().
*/
function modulename_menu() {
$items = array();
$items['test'] = array(
'title' => t('test'),
'description' => 'some de... | stackexchange/codereview |
I am trying to display a UIImagePickerControl in my iPad app. At first, the debugger told me that I needed to put it in a popover when doing it on an iPad. So I wrote the following code:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType = ... | stackexchange/codereview |
Using Ubuntu 10.10 I have compiled and installed the latest Ogre and CEGUI libraries.
I can #include for example but when I try to add the CEGUI headers I have issues.
#include <CEGUI/RendererModules/Ogre/CEGUIOgreRenderer.h>
This in turn includes OgreBlendMode.h and OgreTextureUnitState.h but doesn't have the OGRE/ ... | stackexchange/codereview |
I have a tab bar application which loads a UITableView when one of it's buttons are selected. It seems to load the view controller however it doesn't seem to be populating the data. I have tried setting the cell.text = @"cell" (while setting the number of rows > 0) and an NSLog in the CellForRowAtIndexPath proves that ... | stackexchange/codereview |
I have a question similar to this but in the context of L2S. I want to create a lookup table to store values that could be one of several possible datatypes. As suggested in the referenced question, I could use sql_variant datatype. However, L2S maps sql_variant to Object, which is suboptimal. I'm guessing it's possibl... | stackexchange/codereview |
I'm using Rackspace's Cloud Sites as a webhost and, for a site that uses both PHP and ASP, they have a funny setup.
On our setup, PHP is the default technology, and so the site by default runs Apache, until it hits a URL ending with the .asp extension. That means this URL:
www.site.com/folder/
Will not automatically l... | stackexchange/codereview |
What is the difference between a private method and a private interface?
For example, I know that if you define a method in an implementation and its interface does not mention it, it is considered a private method. I have also seen things such as:
@interface Collector()
@property (readonly) NSMutableDictionary *count... | stackexchange/codereview |
I'm having a difficult time building a left join query that does something like this:
var Results =
from a in Db.Table1
join b in Db.Table2 on a.Id equals b.Id into c //IF b.Value2 == 1
from d in c.DefaultIfEmpty()
select new {Table1 = a};
The problem I'm having is that I simply can't add "where b.Valu... | stackexchange/codereview |
I have defined a Cloneable interface:
struct Cloneable
{
virtual Cloneable * clone(void) const = 0;
}
I have also some other interface classes (content not relevant to issue):
struct Interface
{
};
struct Useful_Goodies
{
};
I have created a leaf object which inherits from the above classes:
struct Leaf : public C... | stackexchange/codereview |
This is displaying when I try to run html2image command for html to image conversion:
"html2image: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory"
| stackexchange/codereview |
Which maven plugin is used for building an osgi bundle containing camel-routes and some POJO's for deploying inside fuse-servicemix 4.3.0 . i have used pax as well as maven-bundle plugin for deploying into fuse servicemix .i get a lotof error's using these .any other good maven-plugin ?
| stackexchange/codereview |
hi to all
I am Struggling to convert NSString to NSDate with the Help of formatter but its going to be null
Can any one help please
here is my code...
NSString *dateString=[NSString stringWithFormat:@"10/26/2010/09:56:56 PM"];
NSDateFormatter *dateFormat = [[[NSDateFormatter alloc] init] autorelease];
[dateFormat se... | stackexchange/codereview |
Hey, so lets say I get a file as the first command line argument.
int main(int argc, char** argv) {
unsigned char* fileArray;
FILE* file1 = fopen(argv[1], "r");
}
Now how can I go about reading that file, char by char, into the char* fileArray?
Basically how can I convert a FILE* to a char* before I know how ... | stackexchange/codereview |
Update: This works in firefox, but does not work on chrome 6, still investigating.
I'm taking an internet programming class and learning various javascript frameworks. I'm working on a mootools problem, and the .get('text') method does not appear to be working as expected on responseXML.
Here's the responseXML:
<?xml ... | stackexchange/codereview |
I have set a test using Moq 3.0. I need to test a method that will change some value in that database. I am using ASP.NET MVC so I want to test my controller.
I setup this
// Generate an implementer of IProductsRepository at runtime using Moq
var mockTareasRepos = new Mock<IRepository>();
mockTareasRepos.Setup(x => ... | stackexchange/codereview |
my program is as follows:
module x
use mpi !x includes mpi module
implicit none
...
contains
subroutine do_something_with_mpicommworld
!use mpi !uncommenting this makes a difference (****)
call MPI_...(MPI_COMM_WORLD,...,ierr)
end subroutine
...
end module x
program main
use mpi
... | stackexchange/codereview |
I'm not sure how to phrase my question....
From different sources I pick up the idea that it makes sense to build web applications around a REST interface. A REST service could execute some controller logic (validations, database-access, etc) and then return a (static) *.xhtml resource. Combined with a decent javascr... | stackexchange/codereview |
I'm trying to use Criteria API in my new project:
public List<Employee> findEmps(String name) {
CriteriaBuilder cb = em.getCriteriaBuilder();
CriteriaQuery<Employee> c = cb.createQuery(Employee.class);
Root<Employee> emp = c.from(Employee.class);
c.select(emp);
c.distinct(emp);
List<Predicate> c... | stackexchange/codereview |
I am working on a software installer for my current application. It needs to be installed to the System HDD. How owuld I detect the system drive and return the letter from Python?
Would the win32 extensions be useful? How about the os module pre packaged with Python?
| stackexchange/codereview |
what is the lifespan of an access token in the FB oAuth API?
Not the extended offline permissioning, just a normal access token?
| stackexchange/codereview |
this is my struct :
struct Node {
struct Node* data;
struct Node* links[4];
}
assuming there is no padding, does Node->links[-1] guaranteed to be pointing on Node::data ?
| stackexchange/codereview |
Ok, this is a really weird one.
I'm sending Latitude/Longitude to Emulator running my App and its getting the wrong Coordinates !!! Everything I send (either via DDMS using GPX file, DDMS Manual, or telnet and using geo fix command), gets received, but when I print the latitude/longitude points received by the app, th... | stackexchange/codereview |
I'd like to sum one particular row of a large NumPy array. I know the function array.max() will give the maximum across the whole array, and array.max(1) will give me the maximum across each of the rows as an array. However, I'd like to get the maximum in a certain row (for example, row 7, or row 29). I have a large ar... | stackexchange/codereview |
If I have a yml data fixture file called mydata.yml
User:
anonymous:
nickname: anonymous
first_name: Anonymous
david:
nickname: david
first_name: David
How do I tell propel where to find this file. Do I need to add any instructions to the build.properties
and how do I run it to insert the data in... | stackexchange/codereview |
I need to write a Rails application (JRuby) that does asynchronous communication with another service in the background. There needs to be one connection per browser session. (It does not really need to be a open TCP connection but I need to free resources after the session ends.) The communication with the background ... | stackexchange/codereview |
i am new to adobe air.
I have installed aptana and created a test application.
When i export that application using export feature of aptana and choose application type as "Adobe air package". It generates a file having extension .airi.
On double clicking that file nothing runs.
Please help me guys.
let me know where ... | stackexchange/codereview |
Why is it preferable to throw this Exception
Throw New DivideByZeroException("You can't divide by zero")
over this general one:
Throw New Exception("You can't divide by zero")
What advantage is gained in this particular example? The message already tell it all. Do standard subclasses that inherit from the base Except... | stackexchange/codereview |
I am attempting to create a dynamic favorites list in this application i'm working on. My problem at the moment is I cannot direct an event to toggle specific li class names. I have a large list of li's and seperate pages associated with them. Each page has a title bar with several image links, phone number, etc. the l... | stackexchange/codereview |
I need to implement c2dm in my app. Is there anyone who is also doing this? Please help..some tutorials will be very helpful OR if you have completed your c2dm implementation then a tutorial is more than appreciated.
Please help.
| stackexchange/codereview |
I am watching a YouTube Video on a Browser, how would i continue to watch the same video using YouTube Apk on an Android Phone? Assuming that i already have the parameters of where to continue from and pass those parameters to the phone using C2DM ?
Regards
V. Ramkumar.
| stackexchange/codereview |
I integrated sendgrid email service with my sample application.
& also able to send email to user.
But how to pass dynamic data to Email template design on sendGrid webapp?
is there any way to send dynamic data to email template designed on sendgrid?
for ex. I designed Welcome email template on sendgrid. & I want to p... | stackexchange/codereview |
I want to send SMS to multiple contacts. I wrote the code and it works fine, but I want to test between two simulators. I saw the solution in plenty of forums, including StackOverflow, but I am not able to make it work.
| stackexchange/codereview |
I want to write all frames to disk using QTKit.framework for camera input. But all the images I get are half transparent and without some colors, maybe colorspace problem? ;(
They seem good in the preview View but when I write them "something" happens.
I wonder what it that.
-(void)savePNGImage:(CGImageRef)imageRef pat... | stackexchange/codereview |
What is the best method of handling null parameters in stored procedure ?
I have a stored procedure with 3 input parameters, any one of them parameter can be null so how to handle those parameter.
SP_GetDetails input parameter (varchar p1, varchar p2, int p3, datetime p4, datetime p5)
In the stored procedure, there ar... | stackexchange/codereview |
Is there a way we can read the alphabets from an image, some kind of text recognition method using python.
What I have to do is, read some images to get the text written on them.
Please suggest.
| stackexchange/codereview |
I like the python shell in ubuntu, it looks pretty, and I want to run jython from there. Can this be done somehow?
| stackexchange/codereview |
Here's a part of my code where I am entering a name of the .mat file, which is located in the same folder as my code. However it does not identify the file name and gives an error:
"??? Error using ==> load
Unable to read file 'q.mat': No such file or directory."
q_type=input('Do you want to use q from "A", "B" or fro... | stackexchange/codereview |
I have a regular DataGrid from WPF 4.0 RTM, where I put data from a database. In order to make clean & light style of DataGrid I use a tall/high rows and by default DataGrid aligns row content in top vertical position, but I want to set a center vertical alignment.
I already tried to use this property
VerticalAlignment... | stackexchange/codereview |
In the below code, is there any chance the GC will clean out the MemoryStream so that ToArray will fail, since it is outside the using statement?
private static byte[] getBytes()
{
MemoryStream ms = null;
using (ms = new MemoryStream())
{
// ...
}
return ms.ToArray();
}
| stackexchange/codereview |
I have a 'User' model which has a has_many relationship to a 'Number' model through a join table 'user_number' model.
I use:
accepts_nested_attributes_for :numbers, :allow_destroy => true
in the 'User' model. Everything works fine except that whenever I delete a number from a user in the edit form,
the associated numb... | stackexchange/codereview |
I'm am trying to use mysqldump to export a database which needs to be imported using a different database name. Looking at the SQL generated by mysqldump, it appears that triggers are the only object names which are fully-qualified with the source database name thus foiling my needs. Is there anyway to direct mysqldump... | stackexchange/codereview |
I want to make map of a particular region, just for education purpose.
I have gone through several web site , which tell to make maps.
like
http://worldwind.arc.nasa.gov/java/demos/,
But i did't find the way as GOOGLE/BING/YAHOO show their maps like its graphics quality and all that its features.
i need to add feature... | stackexchange/codereview |
If an iPhone application has a blog section which parses and displays individual pages from a feedburner feed, will those hits show up in the web Google Analytics?
If not, if I add Google Analytics to the iOS application itself, is there a way to combine the data?
| stackexchange/codereview |
I have checkboxes on a page, when you click a span for each checkbox, it will change the background color of the containing div for each checkbox. The problem is when someone submits the form and goes to the following page, then clicks the back button the checkboxes remain checked but the div color reverts. Is there a ... | stackexchange/codereview |
Does anybody know how I can get built-in Django tag url to work in the wrapped template renderer in google-app-engine?
It fails to create a "nice" url because it expects Django style url mappings, and since I'm using webapp.WSGIApplication I understand how it can be difficult for it to work. Basically I want to know if... | stackexchange/codereview |
A colleague and I were trying to figure out a way of doing the equivalent of a "continue" statement within a VBScript "For/Next" loop.
Everywhere we looked we found people had no way to do this in VBScript without having nasty nestings, which is not an option for us since it is a quite big loop.
We came out with this i... | stackexchange/codereview |
I am reconstructing a dropdown menu similar to a <select> box using div's and jquery. The div containing the dropdown items should have a minimum width, but no maximum width as it should grow along with the widest item in the list (so if i have very long item like '[This is the longest item within the container]', the ... | stackexchange/codereview |
It's possible to create an app based on email.
I have to send message and get it's reply. i searching on the internet and i read that for sending email via SMTP i have to use external library, but what about the inbox?
thx a lot.
| stackexchange/codereview |
I am working on a django-nonrel app in Google App Engine.
I am trying to return items from a database in a random order. So I might have 100 items in my Items model. I wish to return a random selection of 20 items.
I have tried using:
Items.objects.order_by('?')[:20]
Except I get the following error:
Randomized ord... | stackexchange/codereview |
I followed the instructions on this site http://wiki.videolan.org/GenerateLibFromDll for generating a lib file from a dll. The def file is created fine and I have editted it as suggested but when I try to generate the lib file I get the LNK1107 error for an invalid or corrupt file. Any help would be most welcome.
Reg... | stackexchange/codereview |
I want to remove preceding './' and first folder if it is not named 'screenshots'
So from
<image href="./folderx/screenshots/page1.png">
<image href="./screenshots/page2.png"/>
<image href="./views/screenshots/table/screenshots/page3.png"/>
to
<image href="screenshots/page1.png">
<image href="screenshots/page2.png"/... | stackexchange/codereview |
I assume the latest update version of java would provide better performance.
I am looking for a way to implement isolation of software components from endless loops or memory leaks. Android isolates each app in it's own process, Google Chrome isolates each tab in it's own process.
My primary drawback is that java takes... | stackexchange/codereview |
I am kind of stuck on this one. I have webapp where I use simple JQuery plugin:
$.extend($.fn.disableTextSelect = function() {
return this.each(function(){
if($.browser.mozilla){//Firefox
$(this).css('MozUserSelect','none');
}else if($.browser.msie){//IE
$(this).bind('selects... | stackexchange/codereview |
In portaint Actionsheet show in tabbar. In landscape - in window. I heed do remove UIActionSheet from tabbar before rotate, for after rotate show in wondow.
Inside – willRotateToInterfaceOrientation:duration dismiss action sheet dont work.
| stackexchange/codereview |
How would I make a DLL in VB 6.0?
| stackexchange/codereview |
I've just written a limitChars() function.
var limitChars = function(str, limit, endChar, preserveWord) {
str = $.trim(str);
var strLength = str.length;
if (strLength <= limit) {
return str;
}
if (limit == 0) {
return '';
}
endChar = endChar || '…';
if (preserveWord && ! str.substr(limit, 1).... | stackexchange/codereview |
I can't connect my emulator -- Target: Android 2.2 -- to connect to my home wifi that I know works ok. (Had also been able to do that a couple of months ago.) The emulator displays "(No Service)" on top right of start screen. LogCat shows:
10-26 05:53:16.531: INFO/WifiService(60): WifiService starting up with Wi-Fi ... | stackexchange/codereview |
How can I start OsCommerce migration to Magento?
| stackexchange/codereview |
I'm currently building a web application with MVC and NHibernate. Now when i want to get information out of the database I get an index was out of range exception.
The current situation is as follows.
I got the mapping files of three database tables:
A table to store a group with a one-to-many relationship with subscri... | stackexchange/codereview |
Simple question - if I am developing and Android application that wants to access Amazon cloud (AWS services) - can you suggest me options?
More detailed for what I have done till now: I am trying to include existing AWS libraries for Java - but Dalvik does not support them all - finally the issue I am still not able t... | stackexchange/codereview |
How do i deploy/undeploy a war file on running Jboss server using ANT build ?
| stackexchange/codereview |
I'm trying to create a directory on my server using PHP with the command:
mkdir("test", 0777);
But it doesn't give full permissions, only these:
rwxr-xr-x
| stackexchange/codereview |
I am having Maracaïbo as one of my fields. Now i need to update it into Maracaibo.
In simple i need to update the ï only. how can i do it.
Example:
city
Maracaïbo
Mïrïda
My O/P should be like this: (Please note the "i" section)
city
Maracaibo
Mirida
how can i able to update both the fields using mysql update query. How... | stackexchange/codereview |
I have 2 IEnumerable of Type1 and Type2, ie. IEnumerable<Type1> & IEnumerable<Type2>. Type1 and Type2 have 1 common field, called TypeID. Multiple of same TypeID may exists in IEnumerable<Type2>, I would like to check against the 2 IEnumerables and if TypeID inside Type2 equals to TypeID inside Type1, I would combine t... | stackexchange/codereview |
I'm doing something a bit strange here, I'm querying data out of my local database and posintg it to Salesforce form using cURL. The data posts correctly to Salesforce. However, the select multiple is not getting the correct values selected. See $sd["location"] below in my code:
//init curl
$ch = curl_init();
... | stackexchange/codereview |
In trying to get my application to produce 404 errors correctly, I have implemented a catch all route at the end of my route table, as shown below:
routes.MapRoute(
"NotFound", _
"{*url}", _
New With {.controller = "Error", .action = "PageNotFound"} _
)
However, to get this wo... | stackexchange/codereview |
We have an object and we want to build a linq query based on that object on the fly. This linq statement is equivalent to what we want to build:
Expression<Func<Sample, bool>> linqExpression
= x => x.Child == itemToCompare.Child;
We can't quite come up with the right expression to build the itemToCompare.... | stackexchange/codereview |
Is it possible to create a dynamic namespace in a javascript class?
I'm running into an issue where I need to use this class twice on the same page but it uses the same namespace in both spots so it's failing.
| stackexchange/codereview |
I am using wsDualBinding in my wcf service to handle 2 way communication in my software. Everything seems to work fine except when I call a method to get a customer list. If in the service I limit the results of the query to 2730 records I can get the results in about 1-2 seconds and display them in a datagrid. If I li... | stackexchange/codereview |
<input name="myusername" type="text" id="u" class="blackle u" value="Username..." />
<input name="mypassword" type="text" id="p" class="blackle p" value="Password..." />
Using jQuery...
Onfocus - if #u has val "Username..." then change it to "" (blank)
OnBlur - if #u has val "" (blank) then change it back to "Username... | stackexchange/codereview |
I have created a very simple dummy program to understand Delegates and events. In my below program I am simple calling a method. When I call a method, five methods are automatically called with the help of delegates and events.
Kindly take a look at my program and do let me know where I am wrong or right as this is my ... | stackexchange/codereview |
Suppose we have a textarea in which we put example string. Textbox contain :
Earth is revolving around the Sun.
But at the time of saving, I just pressed a enter key after "the sun". Now the statements in texbox ::
Earth is revolving around
the Sun.
Now I am trying to fetch the data but unable just because of that ... | stackexchange/codereview |
The documentation for jquery.tmpl uses .appendTo to insert the template into the DOM during the rendering process:
$.tmpl( myTemplate, myData ).appendTo( "#target" );
I am attempting to convert an existing app from another templating engine, and my code needs to render a template into a string first before it is added... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.