instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
My current web host allows for up to 25 processes running at once. From what I can figure, Python scripts take up a spot in processes, but PHP doesn't?
I get a 500 error if more than 25 processes are running at once (unlikely, but still a hassle), so I was wondering if it would be easier on the server if I were to por... | stackexchange/codereview |
I am not sure if this question is really specific for SO but I still would like to ask.
Has anyone noticed that jquery animations became less smooth on Chrome, if you just find a jquery plugin it seems very nice but usually on demo pages there is a little amount of tags and another javascript funcions. I am currently w... | stackexchange/codereview |
I am embeding SpiderMonkey (mozila javascript) interpreter/engine in my C/C++ application. i programatically loading a javascript script and want to test (from my C/C++ code) if a certain function exist/defined in this script.
is there a way to do that ?
maybe a way to list all functions in a given script ?
Tnx,
Vertil... | stackexchange/codereview |
I'm have a program (GUI) that interfaces with excel to execute macros. We're using Microsoft.Office.Interop.Excel to call/run the macros and this works great.
What I can't figure out is a good way to cancel the macros from the GUI.
One idea we had was to use the excel.application variable that runs the macros to write ... | stackexchange/codereview |
I am using a very old OCX in a project and have set every 'ShowMessages' type property to false that I could find. Yet, every-so-often, an error occurs deep within its bowels and a message box is popped up. I know this because I run the code in a console application and see the messages pop up.
So my question is whet... | stackexchange/codereview |
I am trying to get a friends selector working, the only thing is I don't want to send out invitations, I just want a count of the friends the user has selected.
I need to take this value and apply it to some javascript code that will update a span on the page.
I have spoken to Uncle Google, and he couldn't help.
| stackexchange/codereview |
I have the following query which runs fine on all of my sql server 2005/2008 databases
SELECT sysprocesses.spid
FROM master.dbo.sysprocesses
However for one of my databases it give me a binding error on the spid column (cannot bind multipart identifier).
I've check the compatibility mode of the db and it's set to 200... | stackexchange/codereview |
I have a SQL problem that I use over and over again, but now that I need to do stuff more in LINQ. How do I do this? Is there a site that converts your sql to linq?
conn.Open();
SqlCommand command = new SqlCommand();
command.Connection = conn;
//query
command.Parameters.Add(new SqlParameter("@email", email));
//else
... | stackexchange/codereview |
I have a file hierarchy and some of the sub-directories are relative symlinks. I am using Ruby's Find.find to crawl through these dirs and find some specific files. However it's not looking into any directory which is a symlink (it follows files which are symlinks).
Looking at the source code it seems the problem is be... | stackexchange/codereview |
I've got a students class with a name, a blogEntries class with a student name and entry title, and a blogAssignments class with an assignment name.
I'd like to show ALL students and alongside them the blogEntries they created whose title matches the blogAssignments.assignmentName.
I've got the following LINQ query but... | stackexchange/codereview |
I want to know how to specify something like in my database adapter:
Select * from _myTable WHERE _columnValue IN ('2','3','4');
Is there a way to use any of the existing query methods specified in SQLiteDatabase? I can write the query in pure sql, but wondering whether there is a better (and easier) way to accomplish... | stackexchange/codereview |
The examples that I have seen of how to make a ContentProvider have all used the UriMatcher#match(Uri) method within the insert, query, update, and delete methods to easily handle all of the URI patterns that the content provider responds to (e.g.: http://developer.android.com/resources/samples/NotePad/src/com/example/... | stackexchange/codereview |
This is related with microcontrollers but thought to post it here because it is a problem with algorithms and data types and not with any hardware stuff. I'll explain the problem so that someone that doesn't have any hardware knowledge can still participate :)
In Microcontroller there is an Analog to Digital converte... | stackexchange/codereview |
I'm using the slider to update my visualization, but the command updateValue is sent everytime I move the slider thumb, even for intermediate values.
Instead I want to trigger it only when I release the mouse button and the interaction is complete.
self.slider = tk.Scale(self.leftFrame, from_=0, to=256, orient=tk.HORIZ... | stackexchange/codereview |
I'm using Flash CS4. Everything functions as it should when CS4 previews the swf after compiling it.
However, after embedding the flash item in a webpage, if the textArea loses focus within the flash piece, the textarea's built-in UIscrollbar resets to the very top.
Here's the kicker: if I add a FOCUS_OUT event listen... | stackexchange/codereview |
Quick googling result that QR code can hold nearly 3kb (8 bit) data. But isn't it just using black/white dots to represent bits? If so there's no way that there's over 20,000 dots on a code.
So I'm obviously misunderstanding. Can someone explain how it works?
| stackexchange/codereview |
I wrote a piece of Rack Middleware to automatically unzip compressed request bodies. The code seems to be working just fine, but when I plug it into my rails app, I get a failure "Invalid JSON" from ActionController::ParamsParser.
As a debugging mechanism, I'm writing both the zipped content, and the unzipped content ... | stackexchange/codereview |
I am getting an error when installing certain gems. I am using ubuntu 10.10. The error messages shows this.
ERROR: While executing gem ... (NoMethodError)
undefined method `spec' for nil:NilClass
| stackexchange/codereview |
I have 3 javascript methods.
isLogin();
login();
reply();
when I'll execute the reply method then first of all it should check that user is Login or not. If user is login then execute the reply method. If user is not login then execute it first and then execute reply method.
These are all Facebook Javascript SDK metho... | stackexchange/codereview |
I am pretty new to Qt and I have just started looking at QML. There are some sample applications included with the Nokia Qt SDK for Symbian and I have managed to load them into Qt Creator and run them using the QML Viewer application on the desktop.
I would like to try some of the samples out on a device, but I am tot... | stackexchange/codereview |
All I want to do (and it would be easy enough with PHP, but I'm pushing myself to learn more javascript and jQuery and front end coding right now by modifying scripts to understand what they do) is to build a form with the same number of rows as the "Seats" variable stipulates from a previous form. Then the registrant... | stackexchange/codereview |
I am connecting to a server which sends updates about financial information. The code I post below will work correctly for a few minutes then usually blows up when it tries to do an EndRead (where I have noted), because there was 0 bytes at that moment to be read. Obviously in the financial world some things can stay... | stackexchange/codereview |
I am running Dreamweaver CS5.
For some reason, when I 'save' my PHP script it tries to run it on the server. This is causing a lot of erroneous inserts into the database and I would like to disable this option but I don't know how.
Cheers
| stackexchange/codereview |
I am using the tweet button, with this asynchronous Javascript loading code below. When I place it at the bottom of my HTML the background image of the tweet button flickers, because it is loaded last.
I noticed in firebug it is pulling this via an iframe and the image is a background specified in CSS. Is there anyway... | stackexchange/codereview |
I have several classes that were generated from a WSDL and I need to write 2 small applications that read some input data, call the webservice and write the responses.
Right now I created a bunch of very simple wrapper classes that take the data from the objects returned by the webservice call. I created a wrapper arou... | stackexchange/codereview |
Should I put the includes in the header file or the source file? If the header file contains the include statements, then if I include that header file in my source, then will my source file have all of the included files that were in my header? Or should I just include them in my source file only?
| stackexchange/codereview |
I have worked quite a lot with javascript but yesterday, I started using node.js. It's a little script that runs jslint on the files of a folder. For this example, I changed the command to call ls instead of jslint.
var sys = require("sys");
var fs = require("fs");
var cp = require('child_process');
var path = fs.real... | stackexchange/codereview |
I have seen plenty of people mention some of the cool new features in Perl >= 5.12 but my preferred flavor of Linux Ubuntu only comes with 5.10.1.
I have no fear of PPAs and I know how to google (unless someone finds me something, then I'll feel sheepish). I cannot find someone that provides a Perl PPA; I thought ther... | stackexchange/codereview |
Set-PSBreakpoint -Variable idx -Mode Write -Action {
Write-Host -ForegroundColor Red "MyAction: $($idx)"
}
Function Test ($p) {
0..$p | % {
$idx = $_
$idx
}
}
Test 3
| stackexchange/codereview |
How can I achieve an elseif in a JavaScript condition?
| stackexchange/codereview |
Is it possible to hide a row in a crystal reports crosstab?
I have two rows that are only used to calculate a third row and I would like to hide them so only the result is visible to the user.
| stackexchange/codereview |
How do I say, in regular expressions:
Any portion of a string beginning with a capital letter, containing at least one space character, not containing the string
" _ " (space underscore space), and ending with the string "!!!" (without the quotes)?
I am having trouble with the "not containing" part.
Here is what I have... | stackexchange/codereview |
is it possible to start a Inno Setup, that waits until the child process has finished? The current systems default behaviour is that the setup starts the "real" setup in temporary folder and goes further in command line. My aim is that the parent process should wait until the child finishes to read out the return code ... | stackexchange/codereview |
I need to write a simple program that ask the user to insert 4 double type variable in a struct variable data.
struct Data
{
double a;
double b;
double c;
double average;
};
struct Data *ptr_name;
int i;
First, ask user the size:
printf("Please enter the size:");
scanf("%d", &siz... | stackexchange/codereview |
I've come across a problem where I'd like to create an Array table. That is a 2 dimensional array where the number of rows and columns are known at runtime before the table needs to be created. The number of columns is the same for all rows.
Once the array is created I'd like to operate on just 1 dimension of that ar... | stackexchange/codereview |
I'm somewhat new to OpenCV and for some reason, I'm not managing to get CamShift to work in C++. First of all, if anyone has a working CamShift example using the C++ interface I would really appreciate it.
Second, I'm trying to adapt the C example to C++, just to get it to work. Nothing fancy, yet. Basically, what I'm ... | stackexchange/codereview |
I noticed that this problem discussed elsewhere, and I've tried a number of solutions such as adding:
- (void)navigationController:(UINavigationController *)navigationController
willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[viewController viewWillAppear:animated];
}
Ano... | stackexchange/codereview |
I have got a template which is really nice with great Ui. But they used jquery and mootools without any prob. And now i incorporate that one with magento but i have the prob with prototype. Is it possible to use all these libraries together. Please help me.
And one query with stackoverflow : here i had more than 110 re... | stackexchange/codereview |
I have two dimensional data with varying number of rows and columns and must display it to the user for editing. The format of the data itself is essentially described by a list of row and column descriptors with a header text for each row or column.
I derived a control from Grid that has two properties for the row and... | stackexchange/codereview |
I have created a brand new WCF Service. I created this service by just saying Add New Item... -> WCF Service in Visual Studio. I then edited the contract slightly to look like the following:
[ServiceContract]
public interface IMyService
{
[OperationContract]
[WebGet(UriTemplate = "/Authenticate/{username}/{pass... | stackexchange/codereview |
This
x <- list(12, 13)
names(y <- x) <- c("a", "b")
gives the error:
Error in names(y <- x) <- c("a", "b") : object 'y' not found
Can anyone explain why?
According to R's rules of evaluation y <- x should be evaluated inside the parent frame of names<-. So y should be created in global environment.
Thanks.
[update... | stackexchange/codereview |
I am using Jquery to find a class by variable. So,
var className = "whatever";
$("#container ul li") if contains element with className, do this
How do I write the above code?
Is it
$("#container ul li").find("."+ className).each(function(){
console.log("I found one");
});
Obviously the code doesn't work
| stackexchange/codereview |
I'm trying to write a very simple implementation of Document Object Model library in order to provide a generic data structure to use in my further projects.
Just to keep things simple I defined only three main classes: node, element and attribute. A node is defined by it's name (e.g. all html tags) and basically is a ... | stackexchange/codereview |
I have an array of products id's:
$product_ids = array(10,14,15,...);
and i want to find all the corresponding products on the DB using Cakephp's ORM. I'm using Mysql so the query would be something like:
SELECT *
FROM products
WHERE id
IN ( 10, 14, 15,... )
I could use the query() function, but it's seems like a slo... | stackexchange/codereview |
Could someone please help me to understand how to get all parameters passed to delegate inside delegate itself?
I have class :
public class ShopManager : ShopEntities
{
public ShopManager getWhere(Func<Object, Object> dataList)
{
var x = dataList.???; // how to get arguments?
return this;
}... | stackexchange/codereview |
1.I'm a new Android developer, still learning Java, who has installed the Eclipse-java-helios-SR-win 32 on my desktop.
2.I have installed the new Java SE 6 and the Android SDK. I use Win 7.
3.When I try to launch the Eclipse application I get the below error
A Java Runtime Enviroment(JRE) or Java Developmet Kit(JDK) mu... | stackexchange/codereview |
How to enlarge image on mouseover for dynamically generated images from the database.I am using c# code to bind the images in the User Interface. I tried different Jquery plugins but most of them had compatibility issues with some browsers(IE 6). Kindly suggest me a way out.
Thanks.
| stackexchange/codereview |
I'm completely new to OOP PHP and currently reading "PHP Objects, Patterns and Practice". I needed to develop something that will generate a GeoRSS feed. This is what I have (it works perfectly, I would just like some critique as to what I could do different / more efficiently / safer):
class RSS {
public $channel_tit... | stackexchange/codereview |
Is there any command to check the active (since the machine can have more than 1 JRE installed) JRE installation directory under Windows. For linux, the corresponding command is
which java
Is there any Windows equivalent ?
| stackexchange/codereview |
I like to give my variables, methods and objects descriptive names. Obviously not going overboard, but let me give you a couple of examples.
public class Account
{
public decimal Balance { get; set; }
}
Account account = new Account();
account.Balance = 1000;
Some people would opt to go for the following, which r... | stackexchange/codereview |
I have a very simple GUI that accepts two parameters and then calls three other classes whose names are DigitalFilter(), BeatByBeatVariables(), and GetSummaryOfWholeTest(). This is my first time writing up classes, and I need help with the syntax.
Specifically, can you help me with inheritance? I want the GUI's class... | stackexchange/codereview |
servers all sql server 2008, and win xp
i have the following task
create a huge database, DONE
distribute it to the 20 waiting servers!!
if there were two or three i would have taken the trouble of creating the db's on all of using sql server managemnt stdio
but i am guessing that there is an efficient way
please not... | stackexchange/codereview |
I'm working on app an where there's a view in a zoomable UIScrollView. When the user zooms in or out, I redraw the view that's in the UIScrollView to be nice and sharp. That view has a background image that I draw with CGContextDrawTiledImage.
I noticed that memory usage grows every time I switch to a new zoom level. I... | stackexchange/codereview |
I'm enumerating a dictionary and checking for a known date. If the exact date (both date and time) matches my known date, I want the for loop to stop enumerating. THe issue I'm having is that during the check, I break out of the if statement instead of the for loop.
//known date has already been applied to self.known... | stackexchange/codereview |
Does anyone have a good example for common error handling for service calls? I just started a new project and I see a lot of duplicate code that I don't like and would like to get rid of. I manage to do so in several other layers but in the proxy layer making the calls to services it is a little bit harder. The code is... | stackexchange/codereview |
How can I configure Hibernate to apply all saves, updates, and deletes to the database server immediately after the session executes each operation? By default, Hibernate enqueues all save, update, and delete operations and submits them to the database server only after a flush() operation, committing the transaction,... | stackexchange/codereview |
My webapp has users who login. There is a timeout. Before the session expires, I would like to execute a method to cleanup some locks.
I've implemented a sessionListener but once I reach public void sessionDestroyed(HttpSessionEvent event) the session is already gone and I need some data from it, so I would like to exe... | stackexchange/codereview |
I have a simple OpenRasta webservice and a console client for the webservice.
Using GET method is quite easy - I defined GET in OpenRasta and when client uses this code it all works fine
HttpWebRequest request = WebRequest.Create("http://localhost:56789/one/two/three") as HttpWebRequest;
// Get response
using ... | stackexchange/codereview |
In SQL Server, ID is a not null integer, and an identity.
When I run the following code, I get an InvalidCastException on the last line:
SqlCommand cmd = new SqlCommand();
cmd.Connection = _conn;
cmd.CommandText = @"INSERT INTO [Users] (Name, Email, Password) VALUES (@name, @email, @pass); SELECT SCOPE_IDENTITY()";
c... | stackexchange/codereview |
I am working on a site server side that has uses XML to get data. The path to the XML I need is something like "/image/user/username/"
I need to get the XML file from that resulting link using something like
<script type="text/javascript">
imagesByUser('/../image/user/{{ user.username }}/')
I know that the link is... | stackexchange/codereview |
Im receiving data with a created time field given in a unix timestamp format for example "1251324809" which to my understanding is the amount of time elapsed since the epoch, 1970.
Ive got a DATETIME formatted field in a MYSQL table, and im using this to return the UNIX time to a YY-MM-DD HH:MM:SS format:
date('Y-m-d H... | stackexchange/codereview |
I'm working on trying to understand and modify the WiTap sample iPhone application (which works fine). In my modification of the code, I'm able to get two devices to locate each other and resolve NSNetService objects, on which I then call getInputStream:outputStream to create an NSInputStream and an NSOutputStream obj... | stackexchange/codereview |
Our team is looking for alternative to ActiveX for our browser based client. So far flash, silverlight, HTML5 are being considered. Since I have some prior experience of Qt I am thinking of suggesting Qt. From documentation it seems QtBrowserPlugin is req for our purposes.
There are three criteria that any alternative... | stackexchange/codereview |
I have a dynamic submenu that is rendered according to which page the user is on. I placed the following code in a _sub_menu.html.erb partial:
<a href="/dashboard/index" class="current">Index</a>
<a href="/dashboard/account">Account</a>
<a href="/dashboard/payments">Payments</a>`
From my my main view, I call <%= rende... | stackexchange/codereview |
Is there any way to tie a workflow or a custom workflow develop in WWF to a list template. This workflow would be generic where I can deploy this list template to any site.
| stackexchange/codereview |
I've got a project which has a master branch and a stable branch - the branches diverged long time ago. Now I've got a couple commits on the stable branch, which I also want to have on the master branch (a bug fix). I cannot merge, as the branches diverged and there's loads of unmerged changes - I just want the 4 commi... | stackexchange/codereview |
I integrated this right click context menu into my website: http://abeautifulsite.net/blog/2008/09/jquery-context-menu-plugin/#download
my problem now is when I use fancybox to show an image, I can't seem to find a selector to target so i can use my custom context menu when i right click on the fancybox image popup.
An... | stackexchange/codereview |
We can extend the existing functionality of magento for frontend by copying modules in local area and doing some other required stuff but how I can extend or customize the magento admin area to meet my requirements without touching the core code.
For example I want to extend magento indexing functionality. During re-in... | stackexchange/codereview |
Where can I find information or how can I handle SQL Server transactions in a BackgroundWorker thread? It's my understanding that error handling should not be set in the "DoWork" event and that the error is handled internally and passed to the 'RunWorkerCompleted".
I am currently using SubSonic as my DAL and passing so... | stackexchange/codereview |
Trying to run db:migrate
keep getting rake aborted
== CreateLocalKeys: migrating ================================================
rake aborted!
An error has occurred, all later migrations canceled:
Permission denied - rsa_key
I can't find anything about this
any help is appreciated
Thanks
| stackexchange/codereview |
I need an iphone app to post data from time to time to a webservice. Can the iphone post the data in a gzip format? if yes, can you point me in the right direction on how to accomplish this
Thanks
| stackexchange/codereview |
need help to accomplish this in linq.
I have 3 tables.
Customers
CustumerOrder
OrderDetails
I need to list in one query all customers ( only if they have placed atleast one order) with all the orders for each customer only if order value is greated than 100.
Regards,
Harsh
| stackexchange/codereview |
I have the following 2 classes:
public class SomeClass
{
public int SomeClassID { get; set; }
...
}
public class AnotherClass
{
public int AnotherClassID { get; set; }
public int AnotherClassText { get; set; }
}
I have a ViewModel that contains the following:
public class MyViewModel
{
public SomeClass { ge... | stackexchange/codereview |
Update
I am designing an experimental programming language and the question is wether to include closures or just use first-class-functions. To decide this i need realistic use-cases/examples that show the benefit of closures over first-class-functions. I know that you can achieve everything that you can achieve with o... | stackexchange/codereview |
so I have anchor tags in the form of <a href='[link'] rel='Tab'> and I apply the following at page load:('document ready' I mean)
jQuery("a[rel*=Tab]").click(function(e) {
e.preventDefault();//then I do some stuff to open it in jq ui tab}
now the problem is that when I do this and later through javas... | stackexchange/codereview |
I am just beginning to learn command line scripts, and I have an assignment for school in which the first part is to create a batch file that accepts two integers as parameters. The integers will be subsequently manipulated throughout the question, and I am not looking for any help with that. I have googled this many... | stackexchange/codereview |
I'w working on a project in classic ASP and I want to add, for example, some users for a temporary list and when I submit the form, this data will be save to DB.
I know how to work with this in asp.net, but not in classic asp.
Is it possible to create lists of users, for example, and manage this in a session?
thanks!
| stackexchange/codereview |
I'm trying to add an object:
Person (id, firstName, lastName)
and another object :
Details(id, personId, phoneNumber, address).
Of course, the "id" column in Person and Details is auto incremented.
And the "personId" foreign Key is mandatory in Details.
I'm using Entity Framework.
I created some basic functions t... | stackexchange/codereview |
I have read a fair amount about pre-generated views in EF but not sure which scenarios you wouldn't use it. My understanding is it simply requires a little set-up in your project and that is the only hit. So you will therefore get a performance improvement on first access of queries, essentially for free.
If that is th... | stackexchange/codereview |
I have a small problem I can't seem to solve. I have a XML page with the following content:
<?xml version="1.0" encoding="utf-8"?>
<ArrayOfCategory xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://api.tradera.com">
<Category Id="1612" Name="Category 1">
... | stackexchange/codereview |
I'm looking for a good (general) conversion command that will convert any input file to h.264 sized for the iPad.
Currently I have this command that works, that was adapted from robert.swain
With presets:
$ ffmpeg -i INPUT -acodec aac -ab 160000 -s 1024x768 -vcodec libx264 \
-vpre slow -vpre ipod640 -b 1200kb... | stackexchange/codereview |
I am currently looking for a discrete event simulator written for C++. I did not find much on the web written specifically in OO-style; there are some, but outdated. Some others, such as Opnet, Omnet and ns3 are way too complicated for what I need to do. And besides, I need to simulate agent-based algorithms capable of... | stackexchange/codereview |
I have built an application which is meant to take a star rating. The actual rating mechanism is done with Javascript and CSS.
The intended functionality is that you hover over the stars to make your selection, and then click on it to lock it in.
What I have at present can be seen here. Honestly, I'm at my wit's end:... | stackexchange/codereview |
I created a image uploader which works by remote, so whenever a user enters a bunch of links, I want to prevent duplicate links being added so that the image isn't copied twice and is removed so it leaves the links to be unique without any duplicates.
$break = explode("\n", $links);
$count = count($break);
$unique_ima... | stackexchange/codereview |
I have a WCF DataService build in VS 2010, targetting .Net 4.0. This all works fine. I've created a deployment package and have the application deployed to a web server using MSDeploy and a zip file. When I set up an automated build on a TFS Build Agent the contents of the deployment package changed. I no longer get th... | stackexchange/codereview |
I have a view model that has a "IsSearchVisible" property. When it gets set to true I want it to start an animation in the view that slides down the search box. Anyway to achieve this in Silverlight/WP7?
| stackexchange/codereview |
#import <Foundation/Foundation.h>
BOOL areIntsDifferent( int thing1, int thing2 ) {
if (thing1 == thing2) {
return (NO);
} else {
return (YES);
}
}
NSString *boolString (BOOL yesNo) {
if (yesNo == NO) {
return( @"NO" );
} else {
return( @"YES" );
}
}
int main (... | stackexchange/codereview |
Is there a way to navigate within a webview using paging - like UIScrollView's 'pagingEnabled'?
There are several suggestions out there about setting this parameter on UIWebViews internal scrollview,
but this solution does not work e.g. in the case that you set the webcontent offset using javascript.
In this case, the ... | stackexchange/codereview |
I was expecting this to work, only thinking it would fail if I had locally declared another variable called "tableView"
NSLog(@"X: %@", [tableView delegate]); // Fails: tableView undeclared
.
NSLog(@"X: %@", [[self tableView] delegate]); // Works:
Is this because you need self to refer to items on the actual object?
... | stackexchange/codereview |
This doesn't work:
Dim Qry = From RE In DB.Res_Estab Where _
(RE.Estab_Code = Estab_Code) Group By RE.Research Into Group Select Research
Because Research is a table, not a value. It renders the error "A group by expression can only contain non-constant scalars that are comparable by the server."
So I'm splitting in t... | stackexchange/codereview |
I have a regex validating a password value to be > 6 < 25 characters with at least one number.
var passwordRegEx = /^(?=.*\d)(?=.*[a-zA-Z]).{6,25}$/;
if(!#quickRegister_Password').val().test(pass))
{
errorMgs += 'Your password must be at least 6 characters and have at least 1 number and 1 letter.\r\n';
}
It works i... | stackexchange/codereview |
I'm writing a Safari extension and want it to behave differently when the user turns on Private Browsing mode (I want to respect this private mode).
I found no mention of this in Apple's docs.
I'm aware of the discussion in this thread:
Detecting if a browser is using Private Browsing mode
which suggests using a (brows... | stackexchange/codereview |
Possible Duplicate:
How much faster is C++ than C#?
Hello!
Are there any cases in which C# is faster (has better performance) than C++ in practical use?
I heard that generic collections are a significant performance advantage over stl - is that true?
Has native code written in C# (unsafe block, pin pointers, Marshal... | stackexchange/codereview |
I want to use the Silverlight DataGrid to show notes. When they select an item in the grid I am going to show the note in a different area of the screen. However, I am hoping to also do something similar to Outlook AutoPreview, where the first few lines of the note are shown beneath each row in the grid.
What is the ... | stackexchange/codereview |
I've got a web server running Ubutu 10.04 and Apache2 and PHP.
When I upload a file to the server through PHP, it creates it with 'rwxr-xr-x' and 'www-data www-data' as the user and group.
I've added my 'administrator' account to the 'www-data' group.
However, when I log in to my server through SSH and try and delete o... | stackexchange/codereview |
On my webpage I have images that function as checkboxes (image switch and set hidden form property value). It works in every browser except IE6. Does anybody have a clue what is causing this problem?
The code:
function flip(element) {
var formElement = document.getElementById(element + "Form");
var img... | stackexchange/codereview |
The following embed code works fine when I load swfobject.js locally. However, when I try to load the swfobject.js from Google Library APIs, the Flash movie fails to load. I know I'm using a valid key, and the swfobject.js file is definetely being loaded, but I get an "Uncaught ReferenceError: SWFObject is not define... | stackexchange/codereview |
I always recieve the above error when I generate a proxy class for my service using SvcUtil. The service is exposing a property that is of System.Xml.Linq.XElement type. The SvcUtil generates a System.Xml.XmlElement type property unfortunately. On the other hand if I'm using Add Reference in VS to generate the proxy cl... | stackexchange/codereview |
I have a table in Access with string columns and a date column. I want to get all the rows from the table when the date is lower than 22.10.2010, except this month. So, i need the rows from 30.09.2010 to ...
I tied something, but I figured out it's not right:
SELECT name FROM table WHERE YEAR(date)<=2010 AND MONTH(dat... | stackexchange/codereview |
I am always thinking about validation in any kind on the webpage (PHP or ASP, it doesn't matter), but never find a good and accurate answer.
For example, a I have some GET-Parameter, which defines a SQL query like DESC oder ASC. (SQL-Injection?)
Or I have a comment-function for user, where the data is also saved in a d... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.