instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to create a binder service in C++ and be able to bind to that service from java. My question is how? I have mimicked the implementation in frameworks/base/camera/tests/CameraServiceTest/ CameraServiceTest.cpp. It compiles nicely without any warnings and I can run it. But how do I connect to it? The code for the ...
stackexchange/codereview
We've got an interstitial page that warns people when they're leaving our site. The trouble is it takes querystring parameters and blindly generates a page, thus it's vulnerable to XSS attacks. I've been tasked with fixing it and I want to do it right.
stackexchange/codereview
It didn't work and i think it won't but i wanted to ask you(last chance). I have a simple ascx file. It has one select element which retrieves sub categories when it is selected (over web service). I want to write my web method in ascx.cs file instead of to write in other asmx file. ASCX.CS file protected void public ...
stackexchange/codereview
I am using the following HTML: <p><a href="http://www.example.com/">&larr; Back</a></p> To create the following: ← Back Problem is, the left arrow is not vertically aligned in the middle. It appears to be at the lower 3rd. Question: how do I get the left arrow to be aligned vertically in the middle (of the letter "B")...
stackexchange/codereview
I have a table TABLE1 (PARENT TABLE) with columns StaffID (PK) Name CategoryID (FK) I also have another related table TABLE2 (RELATED TABLE) with columns LeaveID (PK) StaffId (FK) StartDate What i want to do is write a T-SQL query to update StartDate column of all rows in TABLE2 whose CategoryID in TABLE1 = '3' ...
stackexchange/codereview
I have a problem similar to the one described in the link below. NSHTTPURLResponse statusCode is returning zero when it should be 401 I use [NSURLConnection sendSynchronousRequest:returningResponse:error:] to get data from a server. When NSURLConnection receives the HTTP Code 401, it does not return anything but an err...
stackexchange/codereview
How do I check whether there are any AlertDialogs on the screen programmatically?
stackexchange/codereview
I'm doing a blog engine in Symfony. Here's part of my schema : Content: connection: doctrine tableName: ec_content columns: id: type: integer(4) fixed: false unsigned: true primary: true autoincrement: true (...) relations: Author: local: author_id foreign: id ...
stackexchange/codereview
How to write code which specifies timeout to BSD sockets connect syscall ? I writing iPhone application and i need to wait long time to get response from connect syscall. Any Examples ? Thanks Now i have something like this: host_name = NULL ; host_name = gethostbyname([[host_value hostname] UTF8String]) ; if (host_n...
stackexchange/codereview
Here is the code: dojo.query(subNav.navClass).forEach(function(node, index, arr){ if(dojo.style(node, 'display') == 'block'){ "NOW HOW WOULD I FIND CHILDREN????" }); } }); By the way I just started working with DOJO, i am primarily working in jQuery. So now that i have foun...
stackexchange/codereview
I have a users module and few actions like wall, dishes, restaurants, photos. I wanna set up a routing like something like this site.com/users/**{userId or Username}**/wall => *should route to wall() action* site.com/users/**{userId or Username}**/dishes => *should route to dishes() action* site.com/users/**{userId ...
stackexchange/codereview
In my application the modal navigationcontroller that I am presenting is going under the current navigationcontroller so I'm not able to view the new navigationbar as it's disappearing under the current one. I'm presenting the modalview on self and not self.navigationcontroller because self.navigationcontroller doesn't...
stackexchange/codereview
There is this issue I am struggling with. I know that the autoload for the google visualization geomap must be in the part of your document. The thing is every time I reload some other pages in my application the google reloads everything and this I want to take out. So I tried taking the : <script type="text/javascri...
stackexchange/codereview
Hi all I have spent some time googling this but to no avail. If anyone could point me in the right direction of some resources on getting my eclipse bundle recognising the new HTML5 tags that would be greatly appreciated. I am getting annoyed with all these little warning signs. I am using Eclipse for PHP Developers V...
stackexchange/codereview
I want to use SYNCSORT to force all Packed Decimal fields to a negative sign value. The critical requirement is the 2nd nibble must be Hex 'D'. I have a method that works but it seems much too complex. In keeping with the KISS principle, I'm hoping someone has a better method. Perhaps using a bit mask on the last 4 ...
stackexchange/codereview
I'm finalizing my first iPhone apps; and wonder where should I put credit information for open-sources I used in my iPhone app? Should I put it directly in my app (users can see it if they press "About" button) or put it in a file go along with the bundle? The 2 open-source frameworks I used have "new BSD license" and ...
stackexchange/codereview
We're developing an application which reads data from a number of external hardware devices continuously. The data rate is between 0.5MB - 10MB / sec, depending on the external hardware configuration. The reading of the external devices is currently being done on a BackgroundWorker. Trying to write the acquired data to...
stackexchange/codereview
I can run and debug my Android app on my phone just fine, most of the time. Then, seemingly randomly, when I try to run or debug my app from Eclipse, the Console in Eclipse says: [2010-10-12 09:36:48 - myapp] Android Launch! [2010-10-12 09:36:48 - myapp] adb is running normally. [2010-10-12 09:36:48 - myapp] Performing...
stackexchange/codereview
I need to intersect types of incoming objects with a set of predefined ones. The raw approach is to scan an incoming collection for each predefined type: trait Field class Field1 extends Field class Field2 extends Field class Field3 extends Field ... class FieldManager(shownFields:Iterable[Field]) { var hiddenFields...
stackexchange/codereview
I am trying to initialize an application that runs in IIS 7 and I cannot start it because I receive the following error: Object reference not set to an instance of an object error eInitWizard.frmMain.CreateVirtualDirectories() eInitWizard.frmMain.DoObjective() eInitWizard.frmMain.wpResume_CloseFromNext(Object sender, P...
stackexchange/codereview
I want to get bitmap data of windows desktop wallpaper. And, I want to draw some text directly to the bitmap. First, I tried getting bitmap data by following code. #include <windows.h> #include <Commctrl.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrev, LPSTR cmdLine, int showCmd) { Co...
stackexchange/codereview
I have a search box that sends an ajax request to a snippet. When the snipped function gets called I would like the search query to get added to the URL via a anchor hash (ala: http://localhost/search#param) so I can recreate the search request if the user copies the URL and comes back later. Obviously the other side t...
stackexchange/codereview
I am trying to write a PHP report for a MySql table however I am a bit stuck on the correct commands I should be looking in to... The table structure is as follows: | Int | employeeID | lessonID | date | 1 | 15110 | 50 | 2010-10-18 | 2 | 15110 | 51 | 2010-10-18 | 3 ...
stackexchange/codereview
I have a 3 layer application using spring and hibernate (controller -> service -> dao) and transaction is applied to service layer. I don't configure OpenSessionInViewInterceptor or OpenSessionInViewFilter and I want to know the hibernate session control behavior. Open session per transaction or per request? Thanks!
stackexchange/codereview
how to define short key for scroll in form in c#
stackexchange/codereview
I am a programmer with a .NET / PHP background. I recently reviewed a video training on Flashbuilder 4 / ActionScript. One of the videos in the video training is named "Creating a Data Model with a Value Object". I mentioned that "value object" was an unfamiliar term to me and didn't really know if he meant by it "mode...
stackexchange/codereview
I have three models, booking, room and travellers. Booking has many rooms room has many travellers Since I'm doing a multi-step wizard booking and rooms gets created first, the travellers are created later in the update action. This is the log for the update action: http://pastie.org/private/it7onlg8bnurqkgv6mptrq And ...
stackexchange/codereview
I have a java application running on Solaris. This application regularily launches external processes using Runtime.exec. It seems that after a while, having successfully launched such processes many time over, a launching of a process will hang. A thread dump taken at this point (and several minutes later) reveals ...
stackexchange/codereview
I am planning a following html output with PHP. Now when I select week, I want to slide in week div, selecting day,day div etc. How can I do it with jquery. <div id="main"> <form> <div id="week_day_time"> <input type="radio" name="week_day_time" value="week" />Week<br /> <input type="radio" name="week_day_time" value...
stackexchange/codereview
To play a video for just 20sec out of the whole video in Blend/WPF using C# language? Thanks.
stackexchange/codereview
I want to write a script that will download zip files from a given url and save it somewhere in my hard disk. URL looks like this. http://localhost/downloads/1 to http://localhost/downloads/1. I am trying it like this <?php for($i=1;$i<=100;$i++){ $zipfile=file_get_contents('http://localhost/downloads'.$i); ech...
stackexchange/codereview
<select id="name"> <option value="1005">peter</option> <option value="2056" selected="selected">shan</option> </select> how to set option's text=peter selected? like this $('#name option[text=peter]').attr('selected',true);
stackexchange/codereview
Possible Duplicate: Wrapper class in java I learnt about wrapper class that it is used to wrap the primitive values. Can any of you explain me about Wrapper class in detail? Why should we go for wrapper class and when?
stackexchange/codereview
I have a custom structure for browsing content built with hook_menu and Views. I would like links to content to be routed by node type to the appropriate destination in my structure. So while normally clicking on a node link takes you to node/123, I instead would like to be sent to foo/123 (because node 123 is of typ...
stackexchange/codereview
I have an array: print_r($resultArray); Array ( [AB34] => Array ( [a] => 13 [b] => 10 [c] => 3 [d] => 88 [e] => 73 ) ... ) And I want to copy this array into another one: $resArray[] = $resultArray; print_r($resArray); -> Array ( ...
stackexchange/codereview
I have a web server control that is dynamically generated based on a table in my entity framework. Now a decision is being made to have an identically structured table with a different set of data, and I need some way to dynamically repoint my control to the other table. (I have made my case for keeping one table and...
stackexchange/codereview
Is there any advantage if i check if the object already exists in an language like php? /** * User object * @var My_Model_User */ protected $user = null; /** * Setup */ public function __construct() { if ($this->user === null) { $this->user = new stdCla...
stackexchange/codereview
I am using hibernate and spring mvc, when i insert a record in DB, and try to access that that right after that, then i don't get the result. e.g. if insert a record for newly reg. user and login in him right after registering it then result set is empty. I am using hibernate templates. what could be the problem an...
stackexchange/codereview
I find that the the config/environment.rb file looks different in Rails version 3.0. Also when i add the line "config.gem "authlogic".To environment.rb file
stackexchange/codereview
I have a ListBox with a custom data template which contains a CheckBox, a TextBlock and a TextBox. Normally when you select an item in a ListBox, the underlying ListBoxItem is actually what has the focus and as such, it responds to the up and down keys. Additionally, if the CheckBox has focus, since it doesn't do any...
stackexchange/codereview
I am working in Sql Server 2008 and there is a change of table in my database. So I need to know which all the queries I am using that table or I need to know which all queries will throw errors.I has changed some SP to work fine.But there is a lot of queries which may cause errors.So If there is possible to find which...
stackexchange/codereview
Does anybody have any idea why iPad zoom (you know, where you use two fingers to enlarge the text/screen) does not work on some sites? For example: facebook.com c3.arc.nasa.gov/nex/ ± the site that I'm working on. Google search does not reveal anything, which makes me think it’s not a common problem. Thanks beforehan...
stackexchange/codereview
Recently, I discovered that the "Web.Config" file contains an <appSettings> section which seemed good for storing one's Application Settings. Heck, it even has a programmatic way to access the file thru a standard System library. So being all clever, I wrote an Interface to access it and then a Concrete implementation ...
stackexchange/codereview
I can't seem to get preventDefault() to work with the following code... The browser still wants to jump to the top of the page after a click. Any ideas on how to fix this? $('#controls a').click(function(event){ event.preventDefault(); var r = $(this).attr('rel'); var c = $('#container').attr('class'); // Preven...
stackexchange/codereview
I'm trying to access a UNC share via irb on Windows. In the Windows shell it would be \\server\share I tried escaping all of the backslashes. irb(main):016:0> Dir.entries '\\\\server\share' Errno::ENOENT: No such file or directory - \\server\share and using the IP address instead of the name irb(main):017:0> Dir.entr...
stackexchange/codereview
I'm trying to determine the real type of a file programmatically. It seems I have to use for example FFMPeg for that. I want to determine if an uploaded file is in fact a MP4 or FLV (for flash videos) [or WebM (for HTML5)]. I know the -i operator in FFMPeg but I don't know what to check for. For example: Input #0, fl...
stackexchange/codereview
I'm looking for a way to decode AAC natively to PCM on Android. The decoder source code is at https://android.googlesource.com/platform/external/opencore/+/master/codecs_v2/audio/aac/dec, but I'm not familiar with NDK at all. 1) There's no way of doing this directly using the Android SDK, but can this be done via the N...
stackexchange/codereview
I am trying to get the title name of an array object. For example I have $results[0]['page'] $results[0]['title'] I was wondering if I could use a for loop to loop through the $results[0] array and get the 'page' and 'title' names and insert them into a new array? Thanks for your time
stackexchange/codereview
I´m programming Java App. and get an error, because browser don't connect to server to take new values, just renderize from cache... I make something like this: <% if(request.getAttribute("msg")!=null) out.println("alert("+request.getAttribute("msg")+")"); %> It works fine, but when i click on a link and then clic...
stackexchange/codereview
I need to create a strategy pattern where a user selects four strategies from a list of twenty or thirty unique strategy objects. The list of strategies will be expanded as the project matures, and users can change their selected strategy at any time. I plan to store the strategy names they have selected as strings, a...
stackexchange/codereview
I know I can call thread.join() to force a thread to complete before the current thread can proceed. However, my program has a bunch of files that are read into memory, modified, and then flushed to disk. Each flush is being done in a separate thread so that the current thread can continue while the contents are flushe...
stackexchange/codereview
I asked about pipes in a previous question, got that working perfectly. However I had some questions about output redirection like >> in a shell normally does. There doesn't seem to be a whole lot of info on the Internet about it. Here is what I have so far. Is there a better/easier way to do this, it's messy and im no...
stackexchange/codereview
I have problem with constraints on generic method. Here is code for all classes: namespace Sdk.BusinessObjects { public interface IBusinessObject { } } namespace Sdk.BusinessObjects { [DataContract] public class AccountDetails : IBusinessObject { [DataMember] public virtual Guid...
stackexchange/codereview
I'm trying to make sense of how to sort one data.frame based on multiple columns in another. This question does this with vectors. Can someone suggest a way to do the equivalent with data.frames? Here's some sample data. x1 <- data.frame(a=1:5, b=letters[1:5], c=rnorm(5)) x2 <- data.frame(a=c(4,4,2), b=c("d", "d", "b...
stackexchange/codereview
In .NET, a string is a unicode character string. My understanding is the string itself does not contain any particular encoding information, ie is encoding neutral? You can use any encoding method to decode a string into a stream of bytes and then encode a stream of bytes into a recognizable string, as long as the enco...
stackexchange/codereview
I have Notepad++ and I got some XML code which is very long. When I pasted it in Notepad++ there was a long line of code (difficult to read and work with). I want to know if there is a simple way to make the text readable (by readable I mean properly tabbed code). I can do it manually, but I want a permanent solution t...
stackexchange/codereview
I have 2 namespaces for my controllers. One is the default MyProject.Controllers and the second is MyProject.Controllers.Framed. I am using namespaces so that I can have a url like /home/index serve up the normal home website and /framed/home/index serves up a version intended for use in an iframe. My problem is that...
stackexchange/codereview
in one of my project I have a Garage class. This class contains many collections, like Addresses, BankAccounts, Memberships, etc. All these collection classes have a validity. Meaning that an address can be valid in a period of time specified by a user. New addresses or bank accounts can be added, but the validity peri...
stackexchange/codereview
How can I select several not continuous rows ? If I wanted to select rows 1 to 7 I'll write mydata[,1:7] But what if I need to select rows 1 to 5 and 10 to 15?
stackexchange/codereview
I need to place several instances of a custom QPushButton subclass adjacent to one another. For some reason, the buttons overlap one another when painted. A simplified example of the problem is below. Here is the (incorrect) output: Here is the code: #include <QtGui> class MyButton : public QPushButton { public: ex...
stackexchange/codereview
I've built a graph using the following code: G = networkx.Graph() G.add_edges_from([list(e) for e in P + Q + R]) colors = "bgrcmyk" color_map = [colors[i] for i in range(n/2)] # add colors for i in range(len(P)): edge = list(P[i]) G[edge[0]][edge[1]]['edge_color'] = color_map[i] for i in range(len(P)): ...
stackexchange/codereview
I am getting stuck into the symfony practice tutorial and it is attempting to explain the executeIndex function. Unfortunately it discusses returning a Doctrine_Collection. I have looked on the net and cannot fathom out what this is, I have seen the documentation for it in lots of places but none of them actually expl...
stackexchange/codereview
I have the following SQL statement: SELECT CONNECT_BY_ROOT ANIMAL_ID "ORIGINAL_ANIMAL" , ANIMAL_ID, LINE_ID, SIRE_ANIMAL_ID, DAM_ANIMAL_ID, LEVEL -1 "LEVEL" FROM ANIMALS START WITH ANIMAL_ID IN( '2360000002558' ) CONNECT BY ((PRIOR SIRE_ANIMAL_ID = ANIMAL_ID and LEVEL < 5) OR (PRIOR DAM_ANIMAL_ID = ANIM...
stackexchange/codereview
I'm reading the book of Meyers about effective c++ programming, in item 25 I found total template specialization, but I can't understand it, what does that it mean? he also gives example: namespace std { template<> void swap<Widget>(Widget& a, Widget& b) { swap(a.pimpl, b.pimpl); } }...
stackexchange/codereview
I am trying to use the NOAA API for current weather conditions observations and don't know if there is an enumerated list of all the possible weather conditions that they can generate. As an example if I use Yahoo's API (using a woeid near Apples Headquarters as an example) with the URl: http://weather.yahooapis.com/fo...
stackexchange/codereview
Is there any class in Linux system which is compatible to NSTextView in cocoa framework.
stackexchange/codereview
I am using TabControl in a .NET application. By default, the first tab page of TabControl is showing in form loading. I want to show other tab pages in form loading. Programmatically, how can I show a different tab page?
stackexchange/codereview
So I am using jquery ui dialog like this: $(document).ready(function() { // vytvorenie kurzu $('a.openModalBox').click(function(e) { var href = $(this).attr('href'); if ('#/' == href) { e.preventDefault(); $('span.modalBoxContent').dialog({ modal: true, ...
stackexchange/codereview
I am loading the data using http connection,when it does i am using progress dialog box. The problem is when i press the hardware back button , dialog box is removed before loading all the data,but data is showed successfully, the code for back button is i have used is, public boolean onKeyDown(int keyCode, KeyEvent...
stackexchange/codereview
I'm trying to copy sections in a file within a set of XML tags > <tag>I want to copy the data here</tag>` Please note I found out the data around the tags is not valid XML so I can't import a normal library and have to find it via string comparison :( * There are multiple sections of text I want to extract in the f...
stackexchange/codereview
So I have a large form and have grouped the like elements in fieldsets but all the fieldsets have different heights. I float the fieldsets to the left so any extra fieldsets will be pushed underneath (think the next row when reaching the edge of the screen). How do I get all the field sets to have the same height as t...
stackexchange/codereview
I am using VMWare Fusion on my mac to test sites on a windows XP virtual machine (ie6). My mac has the Static IP 192.168.0.220 and the site is being hosted via django, using port 8000. Using both Bridged and NAT mode I can successfully access this site using either Chrome or Firefox (installed on the windows virtual ma...
stackexchange/codereview
Table 1 (history data) SiteName OutcomeType SpeciesType Count DateType ------------------------------------------------------------- S1 Adopted Dog 3 0 S2 Adopted Cat 12 0 S1 Transferred Puppy 2 0 S1...
stackexchange/codereview
In what situations should liftIO be used? When I'm using ErrorT String IO, the lift function works to lift IO actions into ErrorT, so liftIO seems superfluous.
stackexchange/codereview
I am trying to migrate ruby on rails application from one machine to another and when I type Rake db:migrate it gives following error: Mysql::Error: Table 'schema_migrations' already exists: CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB what might be the possible cause..?
stackexchange/codereview
I am trying to retrieve a list of all activities to a contact (not just regarding) using the CRM SDK. When ever I try to filter on 'to' (type of partylist) I get an error. {"Instance validation error: '49' is not a valid value for Microsoft.Crm.Sdk.Query.ConditionOperator."} So I guess the question is... How do I filt...
stackexchange/codereview
I am doing some tests using the SQL 2005 profiler. I have a stored procedure which simply runs one SQL query. When I run the stored procedure, it takes a long time and performs 800,000 disk reads. When I run the same query separate to the stored procedure, it does 14,000 disk reads. I found that if I run the same query...
stackexchange/codereview
Newbie python here. How can I break out of the second while loop if a user selects "Q" for "Quit?" If I hit "m," it goes to the main menu and there I can quit hitting the "Q" key. while loop == 1: choice = main_menu() if choice == "1": os.system("clear") while loop == 1: choice = a...
stackexchange/codereview
I have an application that uses a Mutex for cross process synchronization of a block of code. This mechanism works great for the applications current needs. In the worst case I have noticed that about 6 threads can backup on the Mutex. It takes about 2-3 seconds to execute the synchronized code block. I just receive...
stackexchange/codereview
I want to make an app that can display on any webpage, just like how Disqus or IntenseDebate render on articles & web pages. It will display a mini-ecommerce store front. I'm not sure how to get started. Is there any sample code, framework, or design pattern for these "widgets"? For example, I'd like to display product...
stackexchange/codereview
I want to creating a graphical editor which a physician can use to create user interfaces to define state-based interactive dialogue based diagnosis systems for simple diseases. Each screen consists of simple UI elements like a textarea,button and these are in a container to make up the state. Once he defines many scr...
stackexchange/codereview
I'm trying to create a Windows Phone 7 application, using either Silverlight or XNA, but I can't figure out how to do such thing, that would be part of the idea of the app. If it is not possible, is there any kind of format that does something similar to that? Thanks in advance!
stackexchange/codereview
I have a c# winform application that uses SQL 2005 Express. The application creates math and reading quizzes and is marketed to parents of school-aged children. The parents purchase and download SQL files containing quizzes from my website and install them in the application (which is installed on their child's compu...
stackexchange/codereview
Is there an in-place algorithm to arrange the k smallest integers in an array of n distinct integers with 1<=k<=n? I believe counting sort can be modified for this, but I can't seem to figure out how? Any help will be appreciated.
stackexchange/codereview
Is there a way in SMSS to detect whether a table has any records? I need to get a list of tables that have records. perhaps there is a sql statement that will do the trick?
stackexchange/codereview
I would like to do some C++ development on Windows using Eclipse and the CDT plugin. I use Eclipse Helios SR1 and have installed the CDT plugin. I have also installed MinGW and now I wrote a simple "Hello World" in Eclipse. hello.cpp #include <iostream> using namespace std; int main() { cout << "Hello World" << end...
stackexchange/codereview
I have a syntax highlighting file for the q/kdb+ language and I'd like to convert it to a vim compatible file so my q code won't look any more ugly than usual. Are there utilities available to automatically convert notepad++ xml syntax highlighting files to vi versions? I had a look around but I couldn't find anything...
stackexchange/codereview
I have a situation in which A has a reference to a class C defined inside B, and C has an instance of class B. When I try to compile the code below, I get "field a has incomplete type". I assume this is because the compiler does not know how much memory it should allocate for an instance of A. class A; class B { publi...
stackexchange/codereview
We have a project with some special requirements, one of wich is getting data from a XMLType database column from an Oracle 10g database. We have found an easy solution using JDBC, but it would drive the application a little messy, as all the data access is being done through JPA (the implementation used is EclipseLink...
stackexchange/codereview
I've developed a custom web solution that connects to the TFS server. Now I want to move that solution to the test phase by having it installed on a test machine. The problem is that on the test machine Team Explorer 2010 isn't installed which has resulted in some weird behavior, e.g. the WorkItemStore is always null a...
stackexchange/codereview
(From here) I attended an interview last week and this question was asked: How do you sort a billion rows of data in a file with only 640KB of memory in a 8080 processor based machine? No virtual memory, no external disk. I explicitly asked the interviewer if I could use a hard drive, so I can serialize trees as I sort...
stackexchange/codereview
I am developing window application in C#. I am using the following code to obtain the MAC address private void Form1_Load(object sender, EventArgs e) { lbl1.Text = "Hi"; string macAddresses = ""; foreach (NetworkInterface nic in NetworkInterface.GetAllNetworkInterfaces()) ...
stackexchange/codereview
Im working on this project, The problem Im having is that the an object, does not really get deleted when I need it to be because it has a couple of shared pointers pointing to it. How do I solve this,please help.
stackexchange/codereview
Earlier I have created tables this way: create table workflow ( id number primary key, name varchar2(100 char) not null, is_finished number(1) default 0 not null, date_finished date ); Column is_finished indicates whether the workflow finished or not. Column date_finished is when the workflow was finis...
stackexchange/codereview
I this model: class Bunny < ActiveRecord::Base attr_accessor :number validates_presence_of :number validates_numericality_of :number end Whenever I submit a form to create this model I get the following error: undefined method `number_before_type_cast' for #<Bunny:0x103624338>
stackexchange/codereview
Burning out a brain cell... there has to be a simple way to do this. I've inherited the following tables: approval_path approval_path_steps applications application_roles requests role_approvals A user requests an application role for an application, which must go through an approval path, the steps of which are defin...
stackexchange/codereview
I have my fullCalendar functioning well, however, I need to allow the users to remove events from the calendar. I can use the clickEvent method to bring up a confirmation window with a "do you want to remove" message. But this seems kind of clunky. Is there a better UI way of removing events?
stackexchange/codereview
I have a number of web application projects in a .net environment that use web services created by my DBA to select, update, and delete data from my SQL database. My DBA suggests that he will continue to create new web service interfaces for new projects in the future. I understand that this process is somewhat ineffi...
stackexchange/codereview
This is how I declare my array : NSArray *atouts = [[NSArray alloc] arrayWithObjects:@"1",@"2",nil]; but I'm getting : Initializer element is not constant What would be the best way to declare a static array then ?
stackexchange/codereview
I have a symfony 1.4 project that uses Mongo db, but now I come to set up the deployment tasks with Capifony I can't get deployment to work as Capifony seems to take for granted the fact that I will be working with the databases.yml file, and either Doctrine or Propel - which I'm not in this case. Is there an easy way ...
stackexchange/codereview