instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
There are many email marketing/delivery service providers that offer an api to create and send emails: http://postmarkapp.com, mailchimp, etc. Does any one know of a web app that offers the reverse: a service that will parse new emails into more api accessible information? In other words, I am looking for a service th...
stackexchange/codereview
I think I am thinking about routing all wrong. I have a very simple, two model set-up: Product and Photo. Product has_many :photos, and Photo belongs_to :product. Product has a full scaffold while Photo has a photos_controller that I am working on. In routes.rb we have: resources :products (generated by the scaffold)...
stackexchange/codereview
I have installed growl + rspec + autotest on my windows 7 machine. From the command prompt, when I type 'rspec spec/' it doesn't work. The tests will only run if I use 'rake spec/' + 'autotest'. Also, I am running these tests: http://railstutorial.org/chapters/static-pages#code:default_pages_controller_spec (i.e. very,...
stackexchange/codereview
I've recently discovered an interesting way to create a new instance of an object in Google Guava and Project Lombok: Hide a constructor behind a static creator method. This means that instead of doing new HashBiMap(), you do HashBiMap.create(). My question is why? What advantage do you have of hiding the constructor? ...
stackexchange/codereview
I have input values of x, y, z coordinates in the following format: [-11.235865 5.866001 -4.604924] [-11.262565 5.414276 -4.842384] [-11.291885 5.418229 -4.849229] [-11.235865 5.866001 -4.604924] I want to draw polygons and succeeded with making a list of wx.point objects. But I need to plot floating point coordinates ...
stackexchange/codereview
I have the following window in my app: The list is declared as : IList < Vendor > _editList; and the datagrid is populated via : dataGridVendors.ItemsSource = _editList; The "New" button creates a new Vendor and adds the vendor the _editList. Vendor vendor = new Vendor(); _editList.Add(vendor); Unfortunately.... t...
stackexchange/codereview
I'm new to "Object Oriented" PHP, but have managed to figure most things out so far. I'm building a website where users can register an account and then add, let's say, hobbies onto their profile. I've managed to figure out creating the class, object, storing a single user in the database, and retrieving a single user ...
stackexchange/codereview
I am trying to deploy a war that i didnt write and i am getting this error in my logs: java.lang.NoClassDefFoundError: HttpSessionListener i know that HttpSessionListener lives in servlet-api.jar which is found in the lib dir of tomcat(my app server). I tried including servlet-api.jar in the war's WEB-INF/lib folder, ...
stackexchange/codereview
Running Android 2.2 on a Galaxy S. Host is an OS X 10.6.4 machine. DDMS in Eclipse reports no devices being connected. adb devices -- nothing. I've tried: Rebooting the phone Toggling the USB development mode Plugging/unplugging the cable Restarting the server (adb kill-server). The weird thing is that sometimes com...
stackexchange/codereview
I have two databases: DBTarget and DBTest. I've run several custom scripts on DBTest, so now DBTest and DBTarget should be identical in every way (Tables, Values in tables, Columns, SPROCS, etc.) Question: Is there an easy way to compare these two databases? The only strategy I can think of is: USE [DBTarget]; SELECT ...
stackexchange/codereview
Is there a way to do this in one line? my $b = &fetch(); $b =~ s/find/replace/g; &job($b)
stackexchange/codereview
I looking for block in Simulink to make some recursion, for example: I want calculate A_(k+1) = 2 * A_(k) , where k = 1,2,3,4 and A_(1) = 3. How to make something like this ? I only find initial values in integrator :/
stackexchange/codereview
I got two classes, "A" and "B". In the application logic no one is allowed to create an object of class "B", except for class "A". But, since I dont want to have the two classes in the same file I cant restrict it with the "private" properity. Is it possible to create this kind of restriction? If someone other then "...
stackexchange/codereview
I can see in dom4j library a number of classes with Flyweight prefix: FlyweightAttribute, FlyweightComment, FlyweightText etc. Here is what java doc is saying in the case of FlyweightText: FlyweightText is a Flyweight pattern implementation of a singly linked, read-only XML Text. This node could be shared across docum...
stackexchange/codereview
the problem is that in IE7, the dropdown under "Departamentos" its cut by the banner, and it seems to be pushed to the right... This should be a very easy to fix but I have little experience with IE fixes... I try for some time but I need your help, can you check it out?? Link to the Website Thanks
stackexchange/codereview
I am trying to loop through an array. I have the following code: var currnt_image_list= '21,32,234,223'; var substr = currnt_image_list.split(','); // array here Am trying to get all the data out of the array. Can some one lead me in the right path please?
stackexchange/codereview
I saw that jBPM workflow has plugin-in for Eclipse to draw the processes (workflow) Is there a way to draw the workflow out of Eclipse?
stackexchange/codereview
I have an address and a little map icon and when the user clicks on the icon it loads up Fancybox with the gMaps data in it. Now, at first I tried to see how I could have my <div id="map"></div> load into the Fancybox modal. After trying like for ever to figure this out with ever API option available to me from Fancybo...
stackexchange/codereview
I try to use regexp in .net to find and replace strings with certain token, example myString = "this is a example of my text that I want to change <#somevalue#> and <#anothervalue#>" How I can find the text with tokens between "<#" and "#>" and for each of those, do something to replace it (search on a database and rep...
stackexchange/codereview
I have a PID controller running on a robot that is designed to make the robot steer onto a compass heading. The PID correction is recalculated/applied at a rate of 20Hz. Although the PID controller works well in PD mode (IE, with the integral term zero'd out) even the slightest amount of integral will force the output ...
stackexchange/codereview
I'm running rails 3.0, rspec 2.0 and factory_girl. Here is the simplified scenario I'm working with: a user can subscribe to only one plan at a time # user.rb class User < ActiveRecord::Base has_one :plan attr_accessible :login, :plan_id end # plan.rb class Profile < ActiveRecord::Base attr_accessible :plan end ...
stackexchange/codereview
Hi I have a huge problem that's been bugging me for quite a while, most of the times I have been able to avoid it but now there is no other way. Below is a function that when executed sends a post request for every checked boxes. I need it to wait until the $.each has finished to refresh the page. I have performed test...
stackexchange/codereview
I need to port an application from PHP to JSF 2. Everything is fine except for a rather complex radio button group: When 'Process Application for:' is selected, the child radio button group is enabled. Within that, when 'Other' is selected, the corresponding text box is enabled. When 'Brands' is selected, those two ...
stackexchange/codereview
What I'm doing seems like it should be simple, but I'm still lost after I've read every possible Stackoverflow answer I can find and Googled every article I can find. I'm using a preview SurfaceView and capturing an image from an activity that is set for screenOrientation="landscape" in my AndroidManifest.xml. I follow...
stackexchange/codereview
Is there any way to determine whether location services have been disabled for a specific app? The problem is that [CLLocationManager locationServicesEnabled] returns YES even if location services have been disabled for a specific app...
stackexchange/codereview
I want to log every user action that change domain in my web application. when user try to create, update, delete some data the action must be save in to the user log. but when user action is list, generate report. it doesn't need to log. I my current program, I write service log. and call that service log to each acti...
stackexchange/codereview
Is there a way to return something when a button is pressed? Here is my sample program. a simple file reader. Is the global variable to hold text contents the way to go since I can't return the contents? from Tkinter import * import tkFileDialog textcontents = '' def onopen(): filename = tkFileDialog.askopenfil...
stackexchange/codereview
I'm trying to verify that a filename and path input by the user is structurally correct in a C# GUI. I do not need to make sure the file exists, just that the name is a valid windows file name and the path is a valid relative path from the present working directory. Absolute paths must be explicitly denied. Regex was...
stackexchange/codereview
I've made a Control in XAML and added it to the adornment layer, in the control I have a section that should spawn a context menu when right clicked (using TextBox.ContextMenu property). I've tested it in a regular WPF Window and it works great. However, when I tried the same in Visual Studio on an adornment layer I on...
stackexchange/codereview
I recently asked a question about committing a new file but now I am having trouble resolving a conflict. Says SOURCE LEFT SOURCE RIGHT how do you want to resolve... gives me choices to merge changes into a new file or mark as resolved- neither really works. when i mark as resolved i get a big red x and when i merge ...
stackexchange/codereview
var game = (function() { function start() { //somefunction } function save_count(someparamt) { //somefunction } })(); How could I trigger savecount() from the browser url? javascript:savecount(); won't work and neither game.savecount() and neither window.game.savecount();
stackexchange/codereview
I currently have a string (XSLT 1.0) which I'd like to turn into a NodeList so that it can be used the following example. ($testString represents an element in a XML tree) <xsl:apply-templates select="$testString"> <xsl:template match="$testString"> I have tried using the following but neither seem to work <xsl:apply...
stackexchange/codereview
I have some OAM code here, and I've looked up all the instructions, what they do how they act, and I've re written it all pseudo, but I'm having a problem locating (so I can count how many) loops are in the program. I feel like it should be staring me in the eyes, and I've done a thousand factorial programs in C/Java e...
stackexchange/codereview
Somebody has confirmed there are 8 bits in every location/address in memory. Can I know why? is it related to the memory chip architecture? Or is it because of 32bit CPU. Is this 8 bits true for another OS such as FreeBSD, Mac, Linux? Is there any relation the amount of bits in every location to the count of address li...
stackexchange/codereview
I'm new to Doctrine but somewhat familiar with SQL. I have a very simple schema with Users and Challenges. Each Challenge has a "challenger id" and a "opponent id" which are foreign keys into the User table. I want to print a list of all challenges, with the output being the names from the User table. Here is my Do...
stackexchange/codereview
Im trying to create a page that allows a user to select a maximum of 8 checkboxes out of 25 checkboxes total, While at the same time detecting the exact order the user clicked the checkboxes. My question is, What code can I add to the javascript to gather this info and pass it along to a page named check_combination.ph...
stackexchange/codereview
I am having trouble trying to get all my form data and break it down for debugging. I just want to replace the "&" with a new line. var formData = $("#customer_details_form").serialize(); var debugData = formData.text().replace(/&/g,'\n'); Thanks
stackexchange/codereview
I am trying to install latest mercurial on fedora by doing sudo yum install mercurial . But doing so I am getting mercurial 1.1 that is not latest release .Current mercurial release is 1.6+ . Any help is highly appreciated
stackexchange/codereview
I have a web application which consists of many aspx pages ... one of them shows a grid with rows that can be exported to a file via button click. This works fine. Now I want to have that feature which allows a user to access an external link to this page (or another) and to export to a file and download. I dont need a...
stackexchange/codereview
I'm running a java application from within a C# application. My goal is to fill a couple of input boxes inside the java app automatically using the C# code. I assume the java application uses Swing for its UI. I've tried using SendMessage and WM_KEYDOWN but nothing happens. Since it's a swing app, the input doesn't hav...
stackexchange/codereview
The query below works well. However, I would like to modify it. I would like the ordering by when s.topten = 1 then 0 else 1 end to only be done when s.datesubmitted was less than 24 hours from the present time. How can I do this? Thanks in advance, John $sqlStr = "SELECT s.loginid, s.title, s.url, s.displayurl, s.da...
stackexchange/codereview
i got a problem in [NSUserDefaults standardUserDefaults] in iOS4.0. I saved some states by using [[NSUserDefaults standardUserDefaults] setObject:self.listData forKey:@"listData"]; in applicationDidEnterBackground: and applicationWillTerminate: methods. And i retrieved the data by using NSMutableArray *listData = [[NSM...
stackexchange/codereview
I have link "Show cart" static now http://www.baytires.com/index.php?page=shop.cart How can I make it dynamic, based on items added?
stackexchange/codereview
I have had push notifications setup for about a year now and they have been working fine. Now for some reason they are not. First let me say that I am connections to apples apns servers and sending the push notifications via a PHP script. If I test sending a notification just to my device, it works every time. If I tes...
stackexchange/codereview
Very basic question, but, what does "final" do if you place it before a variable such as below... final EditText myTextField = (EditText) findViewById(R.id.myTextField); What does final do?
stackexchange/codereview
Ok, I've been convinced that quaternions are The Way To Go, rather than trying to make pitch, yaw, roll rotations work out. So now I've got code that looks something like this (obj-C, but it shouldn't matter): [quaternion makeIdentity]; [quaternion setPitch: rotation.x yaw: rotation.y roll: rotation.z]; GLfloat matri...
stackexchange/codereview
In my code I'm passing around some structures by reference, declaring them mutable and using the & symbol. The problem is that in some place the fields are corrupted (happens only in release mode) and I don't know absolutely why. I have found a fix, using ref keyword instead of the address-of operator. I understand tha...
stackexchange/codereview
I'm working with some videogame server data. The server returns a dictionary with past game details. One of the fields is for the date. That returned object is a string like this: /Date(1286749014000-0700)/ I'm not exactly sure how that string translates into the date, but it should represent Sunday, October 10, 201...
stackexchange/codereview
Does anyone know of an web log analyser that can both report on the 'processing time' field that Apache can store (%D), and also parse querystrings intelligently? I've looked into some of the usual suspects eg AWStats and Webalyser but none I've looked at seem to offer either of these features. Ideally, you'd be able ...
stackexchange/codereview
I have a WCF application , with multiple WSDL webservices, hosted in IIS7 on Windows Server 2008 64Bit. The application requires a singleton to be assigned with some configuration values once, when the first webservice method is invoked (no matter what is invoked first). Edit: The backend of the system requires the use...
stackexchange/codereview
I'm trying to generate an easy macro for a Rails app that uses Devise for authentication. Basically I want to ensure that when a user accesses a page that requires authentication, they're redirected to the login page. So something like this: it_requires_authentication_for :index, :new, :create, :update The desired r...
stackexchange/codereview
I'm trying to use an Java Applet for uploading files to my rails application. However I keep getting the following error and I can't figure out why: Processing CategoriesController#upload_image (for 127.0.0.1 at 2010-10-18 20:32:54) [POST] Parameters: {"partitionIndex"=>"0", "fileId"=>"8278320", "lastModified"=>"2...
stackexchange/codereview
I'd like to transform the yaw, pitch and roll of the iPhone from the body frame to the world frame, i.e. azimuth, pitch and roll. On Android this is easily done with the SensorManager.remapCoordinateSystem(), SensorManager.getOrientation methods as detailed here: http://blog.mysticlakesoftware.com/2009/07/sensor-accel...
stackexchange/codereview
Does anyone have a python 3 cheat sheet? You know quick reference kind of thing which has everything on one page.
stackexchange/codereview
I have the following code: interface IConverter<T, U> { U Convert(T obj); } interface IBusinessEntityConveter<T, U> : IConverter<T, U> where U : BusinessEntity { } class LookupConveter<B> : IBusinessEntityConveter<Lookup, B>, IConverter<Lookup, Moniker> where B : BusinessEntity, new() { #region IConv...
stackexchange/codereview
Can any one tell me how to find row count from OracleDataReader in .net 2.0?
stackexchange/codereview
I'm writing a application that put docks in the right side of the screen, like this: I can reserve space in the side of the screen by using the _NET_WM_STRUT_PARTIAL, so that the maximized windows won't overlap the docks. In the image, you can see that there is a top panel. The problem is that the docks will overlap t...
stackexchange/codereview
I have /var/www/cool_codebase on www.example.com AND I have /var/www/cool_codebase on www.example.net The codebases are for the same web app running on different servers. There is some specialisation between the codebases (client-specific bits and bobs etc) - but not too much. One codebase has files that the other does...
stackexchange/codereview
I would like to compile my code in CDT: #include <iostream> #include <gmpxx.h> using namespace std; int main (void) { mpz_class a, b, c; a = 1234; b = "-5678"; c = a+b; cout << "sum is " << c << "\n"; cout << "absolute value is " << abs(c) << "\n"; cin >> a; return 0; } When I compile...
stackexchange/codereview
I'm building a script in PHP to interact with an API and need to be able to parse the HTTP status code the API is giving me. For the most part, it gives one of the following responses: HTTP/1.1 401 Unauthorized HTTP/1.1 403 Forbidden HTTP/1.1 404 Not Found HTTP/1.1 410 Gone I need to be able to recognize which res...
stackexchange/codereview
Firstly I'm really newbie in programming and now I want to develop system using asp but I got problem to create searching. What I want is searching by date. When user select Feb (start) - Nov(end) then report will display below. engine -use dreamweaver database - SQL Server SQL for column select from column month and c...
stackexchange/codereview
How does a x86 disassembler know where to break up the instructions? I am looking at the 8088 instruction set. For example the move instruction has 7 variations that range from 2 to 4 bytes. The instructions themselves seem to follow no particular order. Another reason for Why is x86 ugly?. For example: ...
stackexchange/codereview
Is there a way to find out how many bytes of data is available on an TCPSocket in Ruby? I.e. how many bytes can be ready without blocking?
stackexchange/codereview
I want to write a similar program like the TCP/IP server and client but i want it to be web based, so on the clients side they can go on any web browser and be able to connect to the server. How do i approach this, i want to use visual studio c#. I looked up on web sockets, is that the way to go??
stackexchange/codereview
I'm attempting to make a wrapper using inheritance. In reality I am working with de-serialization code that has very generic names and I am looking to save a few keystrokes over the method that wraps an inner object. public class Base { public string Foo { get; set; } } public class Derived : Base { public strin...
stackexchange/codereview
I want to make the default QSlider like that of Macintosh. Is it possible. I tried with the setStyleSheet, but failed to make that one. Any suggestions... Please?
stackexchange/codereview
Many people say that I should create a friendships table(userid , friendid). My question is: Won't there be a double record for every friendship ? like: 12 is friend with 5 + 5 is friend with 12 Is there a way to prevent this ? | OR | Should I just ignore that ?
stackexchange/codereview
my method's like this:- protected string myMethod() { if (something) { string img = "A"; return img; } else if(something else) { string img = "B"; return img; } } When I run the code "not all ...
stackexchange/codereview
A lot of the times, when I examine code, I like to use intellisense to kind of get a feel for the structure. It's a quick way to know what variables exist and which are in context etc. However, in Visual Studio 2008, this always results in a check out of TFS. Is it possible to change it so that TFS has to expicitly ask...
stackexchange/codereview
Is there a function that allows you to manipulate the desktop like Dashboard->Manage Widgets? The desktop appears to reposition itself and slide up. What I want to do is not just slide the desktop when my toolbar is temporarily active but have the entire desktop resize. I assume if you can grab a handle to manipulate t...
stackexchange/codereview
Saw this in a book: Given: class SortOf { String name; int bal; String code; short rate; public int hashCode() { return (code.length() * bal); } } does the following: public boolean equals(Object o) { return ((SortOf)o).code.length() * ((SortOf)o).bal * ((SortOf)o).rate == this.code.length() * this.b...
stackexchange/codereview
I'm having issues with rails/ruby passenger and need to lower the timeout value for apache. I lowered it to 30 before. What are the effects of setting it really low - like 5 seconds?
stackexchange/codereview
Does anyone know how to access the environment variables of the standard shell environment in Java? I am using the ProcessBuilder class and I have to specify specific environment variables used in a shell script I am running, these variables exist in the standard shell environment. Accessing ProcessBuilder environment ...
stackexchange/codereview
I have this rails find that i need to get the id as well but if i put the id in the :select wont it effect the query and is there another way to get the id @past_requests = Request.find_all_by_artist(name, :conditions => ["showdate < ?", Time.now], :select => "distinct venue, showdate")
stackexchange/codereview
I'm doing the drag an drop of an ItemRenderer manually (DataGrid) and want to know how to generate a custom DragProxy of a component that hasn't been added to the display list. I tried something like this but didn't work: private function doDrag(event:MouseEvent):void { var dragSource:DragSource = new DragSou...
stackexchange/codereview
i just try to use MD5 library in java, but i got some errors, when I try to compile it, I got this error : digest(byte[],int,int) in java.security.MessageDigest cannot be applied to (byte[]) I try to compile it by wtk (j2me) What is the problem ?. thanks here is the code import java.io.FileInputStream; import java...
stackexchange/codereview
What is the cheapest payment processing system for Magento? Better if is is the easiest to implement as well
stackexchange/codereview
Ive just discovered the convenience of having SQLite at my disposal. However, the convenience factor is causing a small problem for me and the way I've set up my database connection objects. In order to provide some semblance of database neutrality and abstraction, I've created a DatabaseUtil.php factory class - the ...
stackexchange/codereview
Eclipse Helios: 40+ project working set, using maven (mvn-eclipse plugin) to generate eclipse project files. 'Resource is out of sync with the file system: ...' Appears after doing, among other things, a text search. After a bit of googling found Prefs > Workspace > Refresh Automatically which is widely reported to b...
stackexchange/codereview
How can I convert GETDATE() into a string like so: '2010-10-15' -rod.
stackexchange/codereview
I am trying to run a class I made however I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/Destination I don't understand why it's not working even when I include the necessary jars in the classpath: java consumer1 -cp activemq-all-5.3.2.jar
stackexchange/codereview
I am sending out a SOAP message from a windows service to an http endpoint (regular aspx page that will just accept the whole SOAP envelope). The overall operation is async, the actual response comes back at a later time. The nature of the setup (aspx page receiving message) means I cannot have a service reference in m...
stackexchange/codereview
I want to compare the contents of two Dictionary<string, string> instances regardless of the order of the items they contain. SequenceEquals also compares the order, so I first order the dictionaries by key and then call SequenceEquals. Is there a method that I can use instead of SequenceEquals that will only compar...
stackexchange/codereview
I am surprised to see this code segment print the same address for all the three pointers. int main(int argc,char *argv[]) { int arr[3][3]; printf("%p\n%p\n%p\n",arr,*arr,arr[0]); return 0; } Why this is so ?
stackexchange/codereview
The MIT license is GPL-compatible. Is the GPL license MIT-compatible? i.e. I can include MIT-licensed code in a GPL-licensed product, but can I include GPL-licensed code in a MIT-licensed product? It seems to me that the chief difference between the MIT license and GPL is that the MIT doesn't require modifications be o...
stackexchange/codereview
I'm using Klimstra's VB.NET template from the "Create skeleton program" of the GOLD parser but the resulting template has methods with the overrides keyword and inherits from TemplateParser.. Am I supposed to create the TemplateParser class or is there a tool to create it? I thought that the "create skeleton" function...
stackexchange/codereview
I've got a simple TCP server and client. The client receives data: received = sock.recv(1024) It seems trivial, but I can't figure out how to recieve data larger than the buffer. I tried chunking my data and sending it multiple times from the server (worked for UDP), but it just told me that my pipe was broken. Sugges...
stackexchange/codereview
Do not close this as a duplicate of other questions because I'm not asking the same thing. They're also about a year old. That said, see these links: http://db.apache.org/jdo/jdo_v_jpa.html http://www.datanucleus.org/products/accessplatform/jdo_jpa_faq.html http://www.datanucleus.org/products/accessplatform/persistence...
stackexchange/codereview
I havea simple EF Model with a Test entity and I want to make use of partial classes to add validation like this: namespace WebApp.Model { using WebApp.BusinessRules; using WebApp.BusinessRules.Rules; using Microsoft.Practices.EnterpriseLibrary.Validation.Validators; [HasSelfValidation] public part...
stackexchange/codereview
Posit the following situation: You have a large and complex system (distributed, concurrent, huge dataset) which supports many users. The code is sent to the data. You want to allow mobile code in the system - ie untrusted code that will run within the same JVMs as the rest of the system, to take advantage of the loc...
stackexchange/codereview
I have a application in which i have several forms. In that forms, I have a System Settings form. I have to open this form from the menu as well as a shortcut created on the desktop. I am able to open the form from 2 places individually. But the problem is, It's opening two separate instance of the same form. it means...
stackexchange/codereview
This is my first time using ms sql with cakephp. Usually I use mysql. I've edited my database.php file: class DATABASE_CONFIG { var $default = array( 'driver' => 'mssql', 'persistent' => false, 'host' => 'jura', 'login' => 'sa', 'password' => '********', 'database' => 'clientportal', 'prefi...
stackexchange/codereview
I have two arrays, search and target. I want to find the longest sequence of elements of search that starts from the beginning of search and which also appears in the same consecutive order in target. Then I want to return a copy of target with those elements removed. Here are some examples: search = [4, "apple", 6, "t...
stackexchange/codereview
I'm creating an virtual stamp card program for the iphone and have run into an issue with implementing my database. The program essentially has a main points system that can be utitlized through all merchants (sort've like air miles), but i also want to keep track of how many times you've been to EACH merchant So far, ...
stackexchange/codereview
I have data grid that measures the height according to the rows it has, but i need to disappear/ make invisible when i have no data, so the header will not just appear alone.
stackexchange/codereview
I have a form which is dynamic. That means, the inputs names are changed, and not the same, but they are all the same "TYPE". So I need to have a javascript which gets all input type="text" and validates them. Is this possible? If so, how? All I need to check is so that they are not empty, and that they are only numer...
stackexchange/codereview
Can an iPhone app be made to stop all calls and text messages for a specified number of minutes, that is, prevent the user from making or getting calls and messages? Can an app turn the device off temporarily? Context: help kids to concentrate while doing their homework/studying and not be interrupted with calls and te...
stackexchange/codereview
I'm using Rails 3 and have a rich association between Projects and Users. The join model (UsersProject) has an additional boolean attribute, administrator, which flags the User as an admin of Project: Sure I'm missing something obvious here, but is there a clean way to set the administrator attribute on the join model ...
stackexchange/codereview
I would like to modify text in a document that is in the form of a date and replace it with a link to add an event on that date to Google Calendar. I mostly have this working with one caveat, it tries to add the link inside of already existing links that have dates in them. document.body.innerHTML = document.body.inner...
stackexchange/codereview
I'm building a WordPress plugin and I'd like to have an edit-item page that can't be reached via the submenu (because then the item wouldn't be specified). This resource (http://codex.wordpress.org/Adding_Administration_Menus) shows how to associate an admin page with a function, but not how to do so without adding it ...
stackexchange/codereview