instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Hey,
I am helping to set up a regression testing suite for our python web application. Many of our tests are scheduling style tests where the current date is important. For example: create a recurring event that runs every week for a month starting on Feb 1.
In order to test this, what I really want to do is override t... | stackexchange/codereview |
I wounder if there is some different way of validating EditText on android controlls..
Or should I use the regular java way of doing this?
| stackexchange/codereview |
I have a dropdown panel that I have just implemented and need to keep the focus in a textbox after I open the panel. The textbox is not inside the panel but rather below or off the panel on the web page.
Is this possible and if so, how can it be done? I'm using JQuery.
EDIT:
To keep the focus in the textbox below this ... | stackexchange/codereview |
I am asking this in the context of NoSQL - which achieves scalability and performance without being expensive.
So, if I needed to achieve massively parallel distributed computing across databases ...
What are the various methodologies available today (within the RDBMS paradigm) to achieve distributed computing with hig... | stackexchange/codereview |
I need to use a C++ XML parser/writer for implementing virtual registry on the basis of the following 2 conditions.
It should not write entries in registry
It should support unicode characters.
I have tried the following parsers but none have solved the 2 conditions:
Msxml (writes in to registry for COM creatio... | stackexchange/codereview |
When I call this, it successfully encrypts my string but the output of the decrypted text is blank. I get no errors and the byteArray of the output string is of the correct lenth (102), however it's just 102 zeros. This is adapted from the KeyBasedFileProcessor example but is attempting to be stream/string based inst... | stackexchange/codereview |
I am building a Rails application that works with videos. I am using an encoding service that encodes my video and places the encoded file along with some thumbnails in a specified location on my s3. I am able to access the video via AWS:S3 like so:
AWS::S3::S3Object.find 'videos/36/base/video.mp4', 'my-bucket-name'
... | stackexchange/codereview |
I want to write a bash script that opens multiple screens and detaches them. So at the end you'll have a few screens open each running a different command.
Similar to ssh:
ssh DESTINATION "command 1; command 2;"
my idea was to write something like this:
screen -S name1 "command1"
screen -S name2 "command2"
...
But t... | stackexchange/codereview |
I have an XSD:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://a.com/a.xsd"
targetNamespace="http://a.com/a.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:element name="A">
<xs:complexType>
... | stackexchange/codereview |
Dunno if someone use this library to make (server-side) a zip files. Here you can see my code :
$i=0;
while ($row = mysql_fetch_array($query, MYSQL_NUM)) {
$title[$i]=$row[1]." - ".$row[2];
// i remove some chars, because they can create confusion with the filesystem
$titleontxt=$title[$i];
$title[$i]=... | stackexchange/codereview |
I am a very young programmer and I am trying to do something in Python but I'm stuck. I have a list of users in Couchdb (using python couchdb library & Flask framework) who have a username (which is the _id) and email. I want to use the list of email addresses in a select box in a jinja2 template.
My first problem is h... | stackexchange/codereview |
Is there any particular reason why this kind of literal is not included whereas hex and octal formats are allowed?
| stackexchange/codereview |
I have problems using Mysql with MySQL Connector, I can successfully connect to a database on the net via ODBC, and in my grid I can display many records, however in the grid (Developper express) I seem to be unable to scroll. i think it is related to cursor locations etc etc, but I am not sure.
also recordcount and re... | stackexchange/codereview |
While writing an asp.net project i may have this url for testing/debugging
http://localhost:1234/
I have code that takes in account of subdomains. Can i make visual studios call the same code with
http://anysub.localhost:1234/
| stackexchange/codereview |
I am trying to store values in php, like a HashTable with multiple keys. For example I am I would want this to return two different values:
$value1=$content['var1']['var2']['var3']['typea'];
$value2=$content['var1']['var2']['var3']['typeb'];
What would be the best way to go about implementing a feature like this?
| stackexchange/codereview |
I am trying to add an event sync via the wizard in exchange explorer, that comes from the SDK, to the default public folder calendar without success.
Things I am able to do:
I can Use the event wizard on a test folder in the same node as the default calendar and add event syncs to a com+ app I have registered with th... | stackexchange/codereview |
I'm looking for a tutorial describing about the various memory segments of a C program like code segment, data segment etc and what type of information is stored into them (i.e. where global, static, automatic etc variables are stored and why?).
--Ravi
| stackexchange/codereview |
I am new to android i wish to create a button like a Equalizer Button. At the time of track the button i need to do some work.Can any one help me
| stackexchange/codereview |
my search results are stored in the @searchresults variable as subarrays - for example it has 3 sub-class of results books, people, carnames, such that each of this results are available in the search result as @searchresults[:books_results] etc,.
I need some help on how to apply the will_paginate for these sections (b... | stackexchange/codereview |
I am runing linux mint. I have a mysql db called Test. Do i need apache or something to hook it up to my db?
When i try to do my php myqlconnect i get this:
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
Any ideas? thanks!
| stackexchange/codereview |
I have followed the sample code below to upload a zip file in the blobstore. I am able to upload the zip file in but i have some concerns reading the file.
Sample Code http://code.google.com/appengine/docs/python/blobstore/overview.html#Complete_Sample_App
My zip file has 6 CSV files where my system will read the file... | stackexchange/codereview |
In my program, I create 100 threads, then wait for all of them to join and then repeat this operation again.
In each of the threads, I create some memory and free it. I am fairly sure, all the memory which I am creating in those threads are getting freed.
But, the SIZE output and RSS output of prstat are continously in... | stackexchange/codereview |
I can't use Boost ASIO (reasons not related to programming) and I looked around and libcurl looks good. I'm building the binaries at the moment and decided to get some feedback from the community.
Any comments regarding libcurl/alternatives?
UPDATE:
libcurl's not great for telnet. It's 2010! Shouldn't there be a simple... | stackexchange/codereview |
My controller is decorated with [HandleError] and [HandleError(ExceptionType=typeof(CustomException), View="CustomView")]. I have views that consist of multiple partial views from multiple controllers, so we're displaying our partial views using <% RenderAction(...) %> but now we have a case where our action being ren... | stackexchange/codereview |
I have this:
$(window).blur(function() {
setInterval(function() {
$.ajax({
type: "POST",
url: "imback.php",
data: {
mode: 'ajax',
getUpdates: 'auto',
},
success: function(msg){
document.title = msg + ... | stackexchange/codereview |
During the processing of a request in Django, I need to perform a nested request to the same application. Consider this example, where while processing the sendmail request, I attempt to make another request to the same server to obtain the content of an attachment (the body of the mail and a list of urls whose content... | stackexchange/codereview |
I am trying to build my PRO* C application in 32 bit mode using Oracle 10g 64 bit on Solaris SPARC platform.
Can someone tell me what settings has to be made in order to successfully compiler and create an executable?
Currently when I switch my LD_LIBRARY_PATH=$ORACLE_HOME/lib32, proc fails with the following error:
#... | stackexchange/codereview |
As the cuda's ".cu" file is basically c, Is there a way we can use doxygen to generate documentation for ".cu" files? I noticed that NVIDIA use doxygen to generate cuda's docuementation. However when I use doxygen, the ".cu" files are ignored.
| stackexchange/codereview |
I really need to know of a way to get the current device’s:
Active Memory
Inactive Memory
Wired Memory
Free Memory
Total Memory
Any information, code or anything is helpful.
Thanks in advance.
| stackexchange/codereview |
I have been given an XML document in a rather strange format and I need to load it into a DataSet, but unsurprisingly I get an error when I try to do so. I can see how I could transform the document into something that would work, but I'm kinda going around in circles with the XSLT stuff...
The document looks something... | stackexchange/codereview |
I'm retroactively writing some tests, using RSpec, for a Rails project.
I'm using the CanCan gem to provide authorization. I decided to write a spec that will test the ability.rb model.
I then went on to test my remaining models.
I've moved on to controllers, and I've run into a huge snag: I'm testing my abilities all ... | stackexchange/codereview |
I am trying to clone a template of a which will be populated with data and then inserted into a table. I'm currently able to use the same .clone() function with other elements on the same page but jQuery refuses to see and clone the template (I'm guessing because its not a block element).
Here is the template:
<tr i... | stackexchange/codereview |
How do you back-door authenticate Windows users into a website using forms authentication running on IIS 7.0?
| stackexchange/codereview |
How do I have a research implement on wpf software?
| stackexchange/codereview |
IMO, please correct me...
the leaf of clustered index contains the real table row, so full clustered index, with intermediate leaves, contain much more data than the full table(?)
Why/when/how is ever whole clustered index scan chosen over the full table scan?
How is clustered index on CUSTOMER_ID column used in S... | stackexchange/codereview |
I have an NSString that already contains a pList.
How do I turn it into an NSArray?
(WITHOUT saving it to disk, only to reload it back with arrayWithContentsOfFile, and then have to delete it.)
Where is the make arrayWithPlist or arrayWithString method?
(Or how would I make my own?)
NSArray *anArray = [NSArray arrayWi... | stackexchange/codereview |
How can this not work in windows?
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>deploy-dev-ssh</id>
<phase>install</phase>
<goals>
<goal>exec</goal>
</goals>
</execu... | stackexchange/codereview |
.net, C#
Is it easily possible (by use of attributes etc) to automatically save the entire XML string (as a string field) that was created when an object was serialised when that object is deserialised?
I ask because I'm receiving an XML stub from a web service, and that stub contains a digital signature that I can use... | stackexchange/codereview |
I've just found this for doing this on the Android but has anyone got this to work on the iPhone?
What I'm looking for is a method that will zoom the map to show all pins that are showing...
Thanks
| stackexchange/codereview |
I've got a form with multiple text boxes which are file paths for the program to import data from. Currently they are checked for non-zero length by the following:
//this code imports the files required by the user, as specified in the
//file path text boxes
private void btImport_Click(object sender, EventA... | stackexchange/codereview |
I am using thesis theme on my wordpress blog. I am hosting my blog at byethost which has allow_url_fopen=Off and allow_url_include=Off
In one of the function, code is trying to read an image url path. From what I understand, if fopen is ON, it will execute "if" case otherwise "else" case
if ($thesis_design->image['fo... | stackexchange/codereview |
I've been trying to convert Hebrew html files without success; the Hebrew characters show up in the output PDF as black rectangles regardless of any encoding I tried.
I tried some unicode test files included in the pisa distribution: pisa-3.0.33\test\test-unicode-all.html and \test-bidirectional-text.html . I ran xh... | stackexchange/codereview |
Is it possible to alias a column name with the result of a simple SELECT query.
This doesn't work:
SELECT `hlevel1` AS (SELECT `level1` FROM `hierarchy_labels` LIMIT 1) FROM `hierarchy`;
Any Suggestions?
| stackexchange/codereview |
I am using rails and capistrano with a staging and production server. I need to be able to copy the production database to the staging database when I deploy to staging. Is there an easy way to accomplish this?
I thought about doing this with mysql and something like:
before "deploy:migrate" do
run "mysqldump -u ro... | stackexchange/codereview |
I want to know how to upload files(other than images) using attachement_fu plugin in rails. I successfully uploaded images using attachement_fu, but wasn't able to upload other kinds of files.
| stackexchange/codereview |
I have a bit of javascript that I have used successfully on one page, but does not work on another. I copied the block from one file to another, but it does not seem to be attaching the event at all. When I run the copied block from the console in Chrome or Firefox after the page loads, it works fine. All of the jav... | stackexchange/codereview |
Is there any command in Fedora core (10) which displays the system call being executed ? Scouring the internet only reveals top and likes...
| stackexchange/codereview |
Are there any best practices for calling SCSF services asynchronously?
Particularly I'm interesting in:
Executions of requests in background
Cancellation support
Reporting progress
Currently I came up with two scenarios:
Listener Service which listens in background for real-time updates
and displays received data in... | stackexchange/codereview |
I would like to get the list of elements of "myvob/project/" having the comment "Requirement X" with cleartool command.
Is it possible ?
| stackexchange/codereview |
I want to store an integer key in shelve. But when I try to store integer key in shelve it give me an error
Traceback (most recent call last):
File "./write.py", line 12, in
data[id] = {"Id": id, "Name": name}
File "/usr/lib/python2.5/shelve.py", line 124, in __setitem__
self.dict[key] = f.getvalue()
Fi... | stackexchange/codereview |
I wanted to be able to have something like Java's interface semantics with C++. At first, I had used boost::signal to callback explicitly registered member functions for a given event. This worked really well.
But then I decided that some pools of function callbacks were related and it made sense to abstract them a... | stackexchange/codereview |
Which is the best way to design a db schema in which store hundreds of thousand events, with recurrencies, and that will support milions of query asking which events will occur in a range of dates?
I mean, designing the tables to describe the model should be not difficult, but doing that in such a way that the huge amo... | stackexchange/codereview |
Please forgive the bad title - I had a hard time trying to think of a concise way to explain this.
I have a Python class that will have some underlying objects of other classes. I want to be able to create these underlying objects via a method of the original object. Let me try to explain better with an example:
class ... | stackexchange/codereview |
I'm trying to integrate a Lift application into some existing Java code. In one of my snippets, I have an Array of Java objects that I need to map that into a NodeSeq. I can get an Array of Node's, but not a NodeSeq. (At least, not in very functional-looking way).
import scala.xml.NodeSeq
// pretend this is code I ... | stackexchange/codereview |
I am looking at the following code: http://netrsc.blogspot.com/2010/04/net-c-binary-tree.html
Am I right in thinking that the while (!Found) condition will iterate the tree?
protected void Insert(T item)
{
TreeNode<T> TempNode = Root;
bool Found=false;
while (!Found)
{
int ComparedValue = TempNo... | stackexchange/codereview |
What is the function to reverse a list in Scheme?
It needs to be able to handle nested lists. So that if you do something like (reverse '(a (b c d) e)) you'll get (e (b c d) a) as the output.
How should I approach this problem? I'm not just looking for an answer, but something that will help me learn.
| stackexchange/codereview |
im running a simple loop that prints out the iterator (i) for 1.000.000 times in both java and c.
im using netbeans and visual studio respectively.
i dont care about precision but at about 40 seconds:
netbeans (java) has printed about 500.000 numbers
while windows (c) has printed about 75.000 numbers
-- why such a big ... | stackexchange/codereview |
I manage to make Mac OS X Application Menu work on Java using com.apple.eawt API and added handlers for "About App", "Preferences..." and "Quit App" menu item.
But is it possible to add some custom menu option in this Application Menu in Java?
By example, Safari have "Report Bugs...", "Block Pop-Up", "Private Browsing.... | stackexchange/codereview |
I understand the concept of the "strategy pattern" but I am still a little bit confused.
Let'say we have a class named Dog.
Dog has MovementBehaviour (interface) which can be MovementBehaviourNormal and MovementBehaviourFast.
MovementBehaviourNormal and MovementBehaviourFast both contain a method named move.
Question: ... | stackexchange/codereview |
What do I need to change here so that animal contains {3,4}?
void funct(unsigned char *elf)
{
unsigned char fish[2]={3,4};
elf=fish;
}
int main()
{
unsigned char animal[2]={1,2};
funct(animal);
return 0;
}
EDIT: I see memcpy is an option. Is there another way just manipulating pointers?
| stackexchange/codereview |
I'm dynamically creating an empty movieclip inside another movieclip to load an image into it.
How could i make sure that this image is always centred in the movieclip?
Also, if i have a attached movieclip named E.G. 1M how do i find out the x and y position to make it appear next to each other?
| stackexchange/codereview |
I have a system that runs on hundreds of websites and I am getting an error for the first time. I was hoping that someone could tell me what may cause this error so I can try to remove it.
The issue comes when trying to add a page.
INSERT INTO pages (parent, name, type, sort) VALUES ('0', 'test', 'text', '37.5');
This... | stackexchange/codereview |
I am currently searching for a neural network (toy) example, that I might optimize using GPU kernels. I need
clean & minimal code (no fancy optimizations, max. a few thousand sloc)
ample testing data
C/C++ open source
Does anybody has an adequate hint?
There's a bunch of examples on the net, but with insufficient te... | stackexchange/codereview |
Why Chrome does not show CSS ::-webkit-scrollbar scrollbar for iframe?
Demo http://jsfiddle.net/laukstein/C9s3P/
<iframe scrolling="yes" style="overflow-x:hidden; overflow-y:scroll; width:150px; height:50px;" src="http://en.wikipedia.org/wiki/Web_browser"></iframe>
CSS
::-webkit-scrollbar{
width:0.8em;
height:... | stackexchange/codereview |
I have the following test line in my PHP which works fine as a way of posting to Twitter from within my PHP code.
$oauth->post('statuses/update', array('status' => "hello world"));
However I want to post the contents of a variable as opposed to Hello World
If I change the code as follows, then all that gets posted is ... | stackexchange/codereview |
I have the following HTML page:
<html>
<head>
<script type="text/javascript" src="JavaScript/Menu.js"></script>
</head>
<body>
<ul>
<li><a onclick="GetIndex(this)">One</a></li>
<li><a onclick="GetIndex(this)">Two</a></li>
<li><a onclick="GetIndex(this)">Th... | stackexchange/codereview |
I have a Role domain class, which I have simplified to illustrate the case here:
@XmlRootElement(name="Role")
@XmlAccessorType(XmlAccessType.NONE)
public class Role implements Comparable
{
@XmlElement
String title = ""
}
I have some code to test marshalling this domain class which is :
try {
employee.... | stackexchange/codereview |
Like on StackOverflow, there is a question and that question has many answers.
But only one of the answers is marked as accepted.
How to implement the same thing in Rails?
The models and tables I have are:
class Question < ActiveRecord::Base
has_many :answers
has_one :accepted_answer # how to get this to work?
... | stackexchange/codereview |
Facing Error: *cannot start the server 'servername' *
when trying to start the workflow, iam getting the above error. I have configured server settings properly and it resolved as well..
all the informatica services are running fine. what could be the problem.
| stackexchange/codereview |
I have an app that have more than one gallery. It is a travel app and it have a separate gallery for each trip. When I'm taking pictures with the camera I'm saving them in the default MediaStore of the system.
To view an Image I'm using new Intent(Intent.ACTION_VIEW) and it launches the default image viewer. When scrol... | stackexchange/codereview |
I'm using and ArrayAdapter to populate a ListView. After selecting and item, it displays a confirmation Y/N dialog. If the user's choice is negative, then he should be able to select another item showing the same dialog. And so on.
Here's my code:
lView.setOnItemClickListener(new OnItemClickListener() {
public vo... | stackexchange/codereview |
I'm using the Facebook like button, and while my like'd URL shows up correctly on the site and is clickable, the site URL after the 'on' isn't clickable.
Example on Facebook: (bold is clickable)
Philip likes Fun & Fresh: Cafe Gitane on www.example.com. · Comment · Like
However, the 'example.com' is supposed to be cli... | stackexchange/codereview |
Possible Duplicates:
varchar Fields - Is a Power of Two More Efficient?
Nvarchar or varchar what is better use multiply of 2 or rounded full numbers??
Out of sheer habit I define the sizes of columns that I use in SQL Server to be Base2 sizes. For example, here's a table that I'm working on:
ID int
FirstName nvarch... | stackexchange/codereview |
This is the information i have for computing light intensity (color) phong shading:
Have a directional light coming from [1,1,1] eye coordinates.
I have normal for each vertex of the object which is nx, ny, nz not in eye coordinates.
I have [0.1,0.1,0.2] as color for ambient and diffuse.
I have [0.8,0.8,0.8] as color f... | stackexchange/codereview |
here is my query:
select reporttime, datapath, finalconc, instrument from batchinfo
join qvalues on batchinfo.rowid=qvalues.rowid where qvalues.rowid
in (select rowid from batchinfo where instrument LIKE '%TF1%' and reporttime
like '10/%/2010%') and compound='ETG' and name='QC1'
i am running it like thi... | stackexchange/codereview |
I have a select, and I need to fire some js each time an option is selected, even if it is already selected.
Example:
<select id="select_one">
<option value="">Choose One...</option
<option value="one">One</option>
<option value="two">Two</option>
</select>
If someone selects "one" I want to fire functionO... | stackexchange/codereview |
I wanna create an anonymous type that I can set the property name dynamically. it doesn't have to be an anonymous type. All I want to achieve is set any objects property names dynamically. It can be ExpandoObject, but dictionary will not work for me.
What are your suggestions?
| stackexchange/codereview |
I'm trying to figure out the easiest and most secure way to Authenticode sign binaries in one of my projects.
The easiest way I can see to do this is to grab the result of compilation--a completed install package containing all my binaries--extract the assemblies from it, sign them, then repack these signed assemblies ... | stackexchange/codereview |
i am using python 2.6.5 to develop an app for google app engine - i am not too familiar with python, but i'm learning.
i am trying to put a url into a string so variable = "string http://domain.name"
then i print the string out. the problem is, if the colon (after http) is in the string, i don't get any output and i do... | stackexchange/codereview |
What does the MySQL USING statement do and is there any docs on this?
MySQL USING statement example
DELETE FROM l, s
USING l
INNER JOIN s ON s.skill_id = l.id
WHERE s.user_id = 3
| stackexchange/codereview |
I am having a tough time with overflow: hidden.
Basically, I am trying to hide the overflow of an unordered list which is located in a <div>.
I have no idea why this isn't working though.
Instead of hiding it, it breaks my list from a horizontal layout to a vertical layout.
The unordered list is carousel and the contai... | stackexchange/codereview |
Update
This question has gotten off on the wrong foot. Let me pose the question as follows:
Let's say I wanted to show my StackOverflow "flair" badge in the signature of an email in Outlook. Obviously, I would want the image to be refreshed whenever I reply to an email or forward the email. Now, assuming the I (and ... | stackexchange/codereview |
I was wondering if there is a way to compare strings in android with greater than or >.
Lets say I have this:
String numbers = number.getText().toString();
if (numbers.equals("9")){
output.setText("50");}
so if you enter 9 in the number EditText field the output TextView will display 50.
I have quite a few different n... | stackexchange/codereview |
From what I understand by using code like this:
NSURL* appUrl = [NSURL URLWithString: @"URL"];
[[UIApplication sharedApplication] openURL:appUrl];
I can open Map, YouTube, Safari, Mail, iTunes and the App Store, when a user say presses a button.
But I was wondering is it possible to open the Settings app with this met... | stackexchange/codereview |
I am developing asp.net with c#web application.
I want to have a control in ASP.net that has text formatting controls as well as a ruler to edit the text which i enter in text area. It would be great if i can open Msword in a web browser without Save buttons at the client side.The data must be saved into the database. ... | stackexchange/codereview |
If I create a module AModule with a typeclass Foo,
module AModule where
class Foo a where
bar :: a
and in another module BModule import AModule qualified and try to make some type an instance of Foo, i.e.
module B where
import qualified AModule as A
instance A.Foo Int where
A.bar = 0
GHC tells me "Qualified nam... | stackexchange/codereview |
I need to read a data frame from a file containing NULL values. Here's an example file:
charCol floatCol intCol
a 1.5 10
b NULL 3
c 3.9 NULL
d -3.4 4
I read this file into a data frame:
> df <- read.table('example.dat', header=TRUE)
But "NULL" entries are not interpreted by ... | stackexchange/codereview |
Performance wise, why and how Datacontract serializer is better than xmlserializer ?
| stackexchange/codereview |
I have an @PostConstruct init() function in my backing bean that performs a lengthy database query.
The backing bean is @SessionScoped.
Every time I perform an Ajax query, I hit that init() and the database query fires off again.
Do I need to check life cycle phase in my init() before firing the database query? Or shou... | stackexchange/codereview |
I am working on a project and so far it went quite well until I have checked out the latest changes from another team, to work on a most up to date files ( do not concentrate on that one ).
I am working using Tomcat OpenEJB 3.1, JPA and Hibernate 3.2.6. What is the problem, after the deployment of application it gets s... | stackexchange/codereview |
Is there any way of adding a route mapping in Global.asax so that routes that contain a certain string (say "Content") are mapped to a different url (say "Content/gz") if a certain http header is present?
| stackexchange/codereview |
This must have a simple answer -- I have a piece of code that looks like this ...
condition = Expression.Call(memberAccess,
typeof(string).GetMethod("Contains"),
Expression.Constant(value));
lambda = Expression.Lambda(condition, parameter);
it works g... | stackexchange/codereview |
I'm in need of a regular expression that would allow anything except for HTML tags. The trick here is that < and > characters would be allowed, but just not with text between them (but other characters are fine).
The following would be allowed:
hello world
!@$%^&*()_+'":;[]{}()\|#
<<<<<<<
>>>>>
<>
><
<087>
<-->
The f... | stackexchange/codereview |
I'm newbie to c#. I have a question about combobox binding with foreign key in entity edmx object.
I have "Customer Card" edmx entity object that has fields and one of the fields is foreign key (CityID) of this customer that contains an ID to the list of Cities table or "City" entity object.
I want to manage the custo... | stackexchange/codereview |
Is it possible to retrieve "everything" (all names) from javax.naming.InitialContext? I didn't find any examples or documentation about it.
| stackexchange/codereview |
I want to get the selected element and then insert it's copies in few places.
var template = $("#info-" + country + " > .stats > .template").clone();
$(template).insertBefore("#info-" + country + " > .stats > .template");
What I'm doing wrong that it doesn't copy the element and insert it?
P.S. The element which I'm s... | stackexchange/codereview |
What is the fastest (or most "Pythonic") way to convert
x = [False, False, True, True]
into 12? (If there is such a way.)
What if x were instead a numpy.array of bools? Is there a special command for that?
I have a large m-by-n array of booleans, where each n-element row represents a single low-dimensional hash of a... | stackexchange/codereview |
I'm very new to Ruby. I've recently finished writing a simple script, which uses a bunch of gems. It works well on my own workstation.
When I copied the script over to my laptop, it stopped working, even though I manually installed all the gems. I think it may be due to version differences in the gems installed, but I ... | stackexchange/codereview |
I've just started learning Obj-C and the Cocoa-Touch framework for developing iPhone and iPad applications. When you add a framework to an XCode project I can't help notice there are an enormous number to get familiar e.g. AddressBook, CoreData, Foundation, Security etc.
Which frameworks are common to most
projects an... | stackexchange/codereview |
I'm learning Android development and I'm a bit confused about how Android manages killing process when an activity is on the task's stack.
Let's say I have a task with 4 activities: A-B-C-D.
Let A,B,D be part of process P1 and C be part of process P2.
Let's suppose that while the user is interacting with D Android kill... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.