instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How do i do a if statement but i want like: else if not edittext.getText.toString.contains("hello") then doCode. and how do i setfocus on a component and remove the focus can not really figure that out.
stackexchange/codereview
I am using Delphi 2009. I have a TListBox with several items. I want to generate an object of specific class for each item selected. So if user select the item number 2 and click Create button an object of specific class is created. I was thinking to implement it just checking the index value of current item selected a...
stackexchange/codereview
Anyone know how to get Eclipse to use a set of default VM args? I'm getting fed up of constantly having to specify these manually every time I run a specific package, class or method within my otherwise smoothly-running test suite. Using JUnit 4, Eclipse 3.5. Rationale: some tests are integration tests verifying operat...
stackexchange/codereview
What is the difference between read, restricted read and view only permissions in SharePoint 2007? Read - Read-only access to the Web site. Restricted Read - Can view pages and documents, but cannot view historical versions or review user rights information. View Only - Members of this group can view pages, list item...
stackexchange/codereview
My DB model is as following: A.id (1 : n) B.ad_id So in cayenne for object A a I can do a.getBArray() which returns me all the entries from B from this given A entry. Yet I would like to filter on this list, based on the property active = 1. Obviously I can use Expression.fromString("active = 1") with SelectQuery, bu...
stackexchange/codereview
suppose i have a jax-rs resource class that looks like this: @Path("/nodes") public class NodeResource { //Temp - those injections should work @EJB ListNodesLocal nodeList; //stuff } and i want some sort of lifecycle callback so i can manually lookup that field via JNDI because injection isnt working for ...
stackexchange/codereview
So Im tinkering around making an old school game for fun using the canvas. Firefox is slow, but chrome dosent have firebug, which I find almost a requirement when developing with javascript. So 1st question : how are people developing these complex games without the aid of firebug? Second question. What are some perfor...
stackexchange/codereview
I have data which needs to be written to azure storage tables. Can someone point me to a blog or msdn article where I can refer the sample code? Help me proceed beyond the 4th line of code. string tableName = "myTable"; CloudStorageAccount cloudStorageAccount = CloudStorageAccount.FromConfigurationSetti...
stackexchange/codereview
I'm using python + matplotlib and I'm having two plots share an axis. If you try to set graph1.set_xticklabels([]) while sharing an axis, it has no effect because it is shared. Is there a way to share the axis AND be able to hide the x axis of one plot?
stackexchange/codereview
Trying to set up one-way SSL with Weblogic 11g and running into an issue. I have a custom identify (my own cert) but I only want to do one-way SSL, so why do I need to specify the trust key store? (I have no use for trust as I am only doing one-way SSL where my server presents its cert to the client). Can someone plea...
stackexchange/codereview
How to get the value from function A to functon B and alternatively? my code is like var $quantities = $('input.PackingCharge'); $(".prdItems tr").toggle(function() { var totalQuantity = 0; $(this).attr('clickedItem', '1'); //Calculate the TotalValu $quantities.each(function() { var GAtrr = (th...
stackexchange/codereview
What is the best way to detect if a token exists? I am using the crude way of simply catching the error if it happens but there must be a way to detect if it exists: try { Response.Write(token["key"]); } catch { } I have tried something like this: if (token["disambiguated"].FirstOrDefault().HasValues) but that does...
stackexchange/codereview
Is there generally a difference between removeAttr(x) and attr(x, '') in jQuery? If so, when to use each one?
stackexchange/codereview
I have some file names in my database that start with dot like .file456 .file593 I was wondering how can I filter those files that start with dot in php thanks
stackexchange/codereview
I want to be able to check if deleting a row from a table in SQL Server 2008 will fail because of a Foreign Key violation without attempting to delete it. Basically, I don't want to show the user a delete button if they are not going to be able delete it because the key is used elsewhere. I am needing this in many plac...
stackexchange/codereview
Has anyone worked with QR barcode using WPF? Is there a free library for Wpf?
stackexchange/codereview
I have a Rails 3 app configured with user registration using devise running on a server. I am allowing people to login to the server through the website and also allowing people to create accounts and login using an Iphone App. When people are using the Iphone app, I'd like to support these two actions: a) Signup for a...
stackexchange/codereview
I have a function that returns MemoryStream?. So null if there was an error that occurred. Then I found that I cannot declare a variable MemoryStream? public MemoryStream? GetResponseStream() { } MemoryStream? stream = GetResponseStream(); The type 'System.IO.MemoryStream' must be a non-nullable value type in order t...
stackexchange/codereview
I am writing a custom adapter for use with a ListView. The Adapter interface includes a getItem() method which returns, according to the docs, an Object as the data item associated with the specified position in the data set. What's this object supposed to be? I can only imagine the ListView wants to call either to...
stackexchange/codereview
I have two classes in my app class A and Class B. Both class A and B are instances of UIViewController. Class A has a button that when pushed pushes class B onto the stack. Class B has a string that class A would like to observe and update it's interface with as needed. I've been able to use: [self addObserver:self fo...
stackexchange/codereview
Hey. I'm quite new to App Engine. I created a web-based Twitter app which is now running on App Engine and I'm constantly hitting my CPU Over Quota limits. I did a little profiling and I found out that every request consists of two urlfetch queries, each one of which takes up to 2 CPU seconds. That time is probably spe...
stackexchange/codereview
I have a few web applications running on the same server. Recently I added crystal reports for VS 2010. I thought to use new reports for several of projects but not all. Other projects uses the older version of crystal reports So I modified the web.config of the required projects. I downloaded runtime on both my develo...
stackexchange/codereview
LISP stumps me yet again... Why can't I get the value of the last element in a list? I have a list set up similar to this: (setq bar '(((1 2) 3 4 5)((6 7) 8 9 10))) Now I get a return of 4 for: (caddar bar) There is a return of (5) for: (cdddar bar) But I can't get a 5 for: (cadddar bar) Why is this--and how do I g...
stackexchange/codereview
How do I package and distribute my apps from the Eclipse IDE? My apps work within the simulators, but I have no idea how to deploy them to my blackberry device. I moved the files to the Media card but I kept getting errors (i.e. invalid COD errors). Is there an appropriate way. It worked fine in the simulator!
stackexchange/codereview
My Use case like this - User is in my application - User presses home key (application goes to background) Now user wants to go back to the same application (task in android terms) one way is it through the application launcher BUT for my application there is no icon provided. Instead user have to launch app with som...
stackexchange/codereview
I am having iPhone 3G with iOS version 3.1.3. I am going to update iOS 3.1.3 to 4.1. After update iOS 4.1, can I restore it again to iOS 3.1.3 ? Will it get any issue after restore the version ? Thanks.
stackexchange/codereview
I am working on a Java OpenGL application described below. The application shows a large 2D texture of a world map. Some information must be represented as captions on the map (for example, a caption near Spain that shows its population). The captions are GL objects consisting of polygons and text. The user must be abl...
stackexchange/codereview
I'm working on a touch based game, and I'm having issues drawing a path the user has touched through. I'm trying to mimic something like these apps http://www.youtube.com/watch?v=G3CECr6mT1Q or http://www.youtube.com/watch?v=r34-_0wrVC4 I'm doing this in XNA/C#. My issue is: I have the set of waypoints that define that...
stackexchange/codereview
I'm trying to create a rating system, where the user can rate pictures/videos/audio etc. I have two tables at the moment Table: products Cols: product_id[PK] | name | category | type | link This is the products table and contains information about the products. If you're confused by products, think of the "product" a...
stackexchange/codereview
I’m having problems targeting a .NET 4 WCF service to be 64 bit. I take the following steps on a 64bit Vista OS: Create a new WCF Service project in Visual Studio 2010. Change the Platform target to x64. After doing this my WCF service will no longer run in either Cassini or IIS. A point to note is that taking these sa...
stackexchange/codereview
I'm trying to create a base class that provides a good amount of re-usable functionality to many classes that will derive from it. By providing this functionality, I'd like to also require the derived classes to implement certain methods as well, i.e. implement an interface. However, I don't want to explicitly tell the...
stackexchange/codereview
I'm trying to put the content of a file into a variable, but I'm having issues with BorlandC 3.1 . I've read the documentation for this on http://cplusplus.com/doc/tutorial/files/ but, I don't have getline in Borland... Can anyone point me to a way to get the string from the first line of the file into a variable ? Tha...
stackexchange/codereview
Is there an attribute I can use to restrict access to methods or assemblies? (I'm working in C#, .Net 3.5) e.g. [RestrictionAttribute(//Specify an assembly or a key or something here)] Public void MyMethod() { //Do something... } I want to add an 'access layer' of code on top of some business assemblies where some...
stackexchange/codereview
How can i inject the current session factory that is used by the nservice bus to a custom saga finder? I have initialized the saga using the following code NServiceBus.Configure.With() .CastleWindsorBuilder() .Sagas() .NHibernateSagaPersister() .XmlSeriali...
stackexchange/codereview
How can I export my settings (fonts, syntax coloring, formatting, etc.) in Eclipse 3.6, so I can use them again in another installation?
stackexchange/codereview
I have the following code : string excelConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\db\suc.xls; Extended Properties=""Excel 12.0;HDR=YES;"""; // Create Connection to Excel Workbook using (OleDbConnection connection = new OleDbConnection(excelConnectionString)) { OleDbCommand...
stackexchange/codereview
I have created a simple two page example, first page has a list view and the second just a <h1>, however when the second page gets loaded there are now ui styles applied to it automatically? Do I have to call something manually or is there an issue with how I've laid out the navigation? Code below any help much appreci...
stackexchange/codereview
I should be kind to my web service consumers and serve them some nice examples, even though it's no fun maintaining a big xml request test. Are there better ways to be a good WS provider? I have no html. The app accepts both XML and JSON, so to ensure the validity of the API examples(both xml and json), I'd like to pro...
stackexchange/codereview
When storing data in MySQL and storing the same data in SQL Server, will the size of the database differs or will it be the same for both? Updated: What I mean exactly if we have 20 GB of disk space, and we used both SQL Server and MySQL and stored the same data exactly for example, texts, dates. All data were the sam...
stackexchange/codereview
I have received an exception from a live deployment of a web application (JBoss, Turbine, Hibernate). I can not reproduce the exception, therefore I can not fix the bug. Here is the exception that I get: org.hibernate.exception.DataException: could not update: [com.myproject.project.mypackage.objects.MyObject#1190] ...
stackexchange/codereview
I have the following code: $('#country-list').change(function() { country = $('#country-list').val(); $('td').fadeOut("slow", function() { $.post("/gsm/findtariff/country:"+country+"/", function(data){ $('#incoming').html(data.incoming); $('#national').html(data.national...
stackexchange/codereview
private function openAllNodes(event:TimerEvent):void { //Alert.show(event.target.currentCount); var index:int =event.target.currentCount - 1; myTree.openItems = treeData..node[index] ; } public function start_timer():void { timer.start(); ...
stackexchange/codereview
I'm creating an app using a UITabBarController as the main form of navigation, having never done this before I've ran into a little bit of an issue. On two of the four tabs, the view controllers held drill down using a standard navigation controller and browse through categories and then into items, the categories and ...
stackexchange/codereview
What is the difference between locales ja and ja_JP in Android? Do I have to care about both? Thanks in advance.
stackexchange/codereview
We are trying to Integrate SQLite in our Application and are trying to populate as a Cache. We are planning to use it as a In Memory Database. Using it for the first time. Our Application is C++ based. Our Application interacts with the Master Database to fetch data and performs numerous operations. These Operations ar...
stackexchange/codereview
I am using SQL Server 2008 and I have a database file (mydata.mdf) in which I have a column in one of the table and that column has the datatype (Time) . I added this database file to my WPF-C# project (using VS2010) , but I had a problem and its as follows : This (Time) column treats time in 24-Hours system , but I wa...
stackexchange/codereview
I've got an Ajax call from the stop event of my jQuery UI sortable that currently looks like this: ... stop:function(event, ui) { $.ajax({ type: "POST", url: "<?php echo site_url('messages/reorder'); ?>", data: $("#messagelist").sortable("serialize") }); ... Now, that's fine, and it's w...
stackexchange/codereview
Consider: int a = 42; // Reference equality on two boxed ints with the same value Console.WriteLine( (object)a == (object)a ); // False // Same thing - listed only for clarity Console.WriteLine(ReferenceEquals(a, a)); // False Clearly, each boxing instruction allocates a separate instance of a boxed Int32, which is...
stackexchange/codereview
I'm wondering if there is a way to quickly reverse specific hunk of a commit. I can generate a diff between two commits or HEAD to see the difference. How do I reverse just one of those hunks (or better yet, a set of specific hunks)?
stackexchange/codereview
When a user logs into our applicaiton and then clicks a link in the application they are logged out and taken back to the login screen. Sometimes it takes a few link-clicks to get kicked back to the login screen. We are not sure why this is happening. We believe that it might be that the user logs in to one weblogic s...
stackexchange/codereview
For a homework assignement, I need to fill a list of Student structs, which look like the following: struct Student { int matriculationNumber; char *firstName; char *lastName; char *birthday; double averageGrage; } The actual data has to be read from a .csv file and looks somethink like 2345678;Me...
stackexchange/codereview
I work with a library which defines its internal division operator for a scripting language. Unfortunately it does not zero-check the divisor. Which leads to lot of headaches. I know the signature of the operator. double ScriptClass::Divide(double&, double&); Sadly it isn't even a C function. Is there any way I could m...
stackexchange/codereview
As far as I know that above is not possible in below case. I explain it in details here. Suppose If I have Form1 and I set it’s Keypreview Property = true than the “Keyprees,Keydown,and Keyup" Events are only works for winform not for their child objects/components Like “textbox”,”ListBox” etc. So my question is ...
stackexchange/codereview
I want to store the bitmap data from _sampleTile in array, but I was wondering how to increase the performance. If I do it like this: var _sampleTile:BitmapData; var _arrayLenght:int = _tileClipArray.length; for(var i:int = 0; i < _arrayLenght; ++i){ _sampleTile = new BitmapData(65, 65, false); _sampleTile.draw(_t...
stackexchange/codereview
Can anyone give me a short code example in c using opengl where clicking in two different squares changes their color? I'm particularly interested in knowing how to detect that a mouse click has happened to a particular primitive.
stackexchange/codereview
Using the following Rewrite rule: RewriteRule ^page.html$ /secretpage.php [L] Is there anyway someone can know that the page being served now is /secretpage.php on the server? I am not asking if someone can get to this page alone by typing it in the URL line, but rather if someone can know about the rewrite that was m...
stackexchange/codereview
Is possible to use different version of Perl without using the SET or manipulating the environment variable "PATH" I need a mechanism that allows me to work with different version of Perl for different script without affecting the system configuration. (e.g. I am using Perl ver 5.6.1 for some scripts and perl 5.8.8 fo...
stackexchange/codereview
I have a form which needs to get connected to SQL Server, and I have a drop down for selecting the list of databases and perform operations like primary key checking, etc. But presently my connection string looks like this: SqlConnection sConnection = new SqlConnection("Server=192.168.10.3;DataBase=GoalPlanNew;User Id=...
stackexchange/codereview
I am trying to pass the elements "event" into a JavaScript function click using jQuery. INLINE: This is easy when doing it directly (inline). <a href="#" onclick="ToggleMinimize('Hello World', event)">Click Me</a> USING JQUERY: But how do you do it using jQuery? <script type="text/javascript"> <!-- function Togg...
stackexchange/codereview
I need a way to simulate connectivity problems in an automated test suite, on Linux, and preferably from Python. Some sort of proxy that I can put in front of the web server that can hang or drop connections after one trigger or another (after X bytes transferred, etc) would be perfect. It doesn't seem too hard to buil...
stackexchange/codereview
I'm having trouble converting a Java/JSON map into a usable F# object. Here's the heart of my code: member this.getMapFromRpcAsynchronously = Rpc.getJavaJSONMap (new Action<_>(this.fillObjectWithJSONMap)) () member this.fillObjectWithJSONMap (returnedMap : JSONMap<string, int> option) = let container = Op...
stackexchange/codereview
it's the old DateTime conversion black hole: tbl_a.dob (varchar) = "1/1/1980" tbl_b.dob (datetime) = 01/01/1980 00:00:00 this does NOT work: select * from tbl_a, tbl_b where tbl_a.dob = convert(varchar, dob, 101) because style 101 adds leasing zeroes to the datetime! "01/01/1980"
stackexchange/codereview
Is it possible to run NServiceBus build 2.0.0.1219 with .NET Framework 3.5 or does it have to run on .NET Framework 4.0? If it's possible, are there and features that don't work?
stackexchange/codereview
See: http://bit.ly/cq4bYF Problem is the vertical-alignment on the carousel and < > buttons. Chrome and FireFox load accurately. IE7/IE8 the elements should be another 20px lower. Anyone know a Solution? Thank You!
stackexchange/codereview
I'm trying to create an environment for many users to develop many php projects on. I've installed Zend server community edition on a Windows 2003 server. I've shared the apache/htdocs folder. Each user has a their own folder in htdocs, say: /htdocs/bob/ /htdocs/sarah/ /htdocs/michael/ ... With the projects they are w...
stackexchange/codereview
The command for finding the perl version "perl -V" gives information related Platform, Compiler, Linker and Libraries, Dynamic Linking, Compile-time options & Locally applied patches. Could you please let me know from where each of these information's are extracted(Environment variables or any other method) and descri...
stackexchange/codereview
I'm using the fancybox plugin for ajax and images displays and it's working fine when it's a simple scenario. But I'm dealing with quite a tricky issue here. I have a link which does an ajax call via fancybox, and returns an HTML code with a image within (<img /> tag). From what I do understand in the fancybox jquery ...
stackexchange/codereview
I'm having problem with creating my 2D dynamic array in C++. I want it to have dynamic number (e.g. numR) of "rows" and fixed (e.g. 2) number of "columns". I tried doing it like this: const numC = 2; int numR; numR = 10; double *myArray[numC]; myArray = new double[numR]; Unfortunately, it doesn't work. Is it possible ...
stackexchange/codereview
I have a GWT application that I would like to integrate with the Joomla login system. Everytime an AJAX request is sent to the server, the application should check that the user is authenticated (username and password pass) Any ideas of how to implement this? I had these ideas but don't like them for the reasons menti...
stackexchange/codereview
I can't seem to get my head around why people say C++ exceptions are better. For example, I have an application which loads function objects from shared objects to be used in the application. What goes on is something like this: bool LoadFunctions() { //Get Function factory. FunctionFactory& oFactory = GetFunctio...
stackexchange/codereview
Given a filename like 'prefix.extension', I would like to find all files of the pattern prefix\.\d\d\.extension. Given that 'prefix' or 'extension' could contain literal strings like .*, \n and the like, the only way I can think of finding this properly is to escape all characters in 'prefix' and 'extension', placing t...
stackexchange/codereview
I tried using the following but apparently it's invalid SQL: CREATE OR REPLACE TRIGGER QUESTION_DATE BEFORE INSERT ON QUESTION FOR EACH ROW BEGIN INSERT INTO QUESTION(CREATED_TIMESTAMP) VALUES (SYSDATE); END; The Question table looks like this so far: CREATE TABLE QUESTION ( QUESTION_ID INTEGER no...
stackexchange/codereview
Is it possible to present a UIAlertView and not continue executing the rest of the code in that method until the user responds to the alert? Thanks in advance.
stackexchange/codereview
Is it possible to give separate cell styles in a table view?
stackexchange/codereview
Is there a way to encode a email address that can be used as a part of a url in codeigniter?. I need to decode back the email address from the url. What I am trying to do is just a -forgotten password recovery- thing. I send a confirmation link to the user's email address, the link needs to be like ../encodedEmail/for...
stackexchange/codereview
i want get the last item of an array with class names. My code looks like this var getClassName = []; getClassName = $(this).attr('class').split(); console.log(getClassName); In the console i become get this answer ["classname1 classname2"] how can i get the last class name? Thanks
stackexchange/codereview
i have a simple question.how can i use property of a class in another class in ?i have a picturebox in a class and i want to use the picture in picturebox in another class.how can i do it?thanks.
stackexchange/codereview
I'm trying to get the street name of my current location but I can't seem to get it. I use this method to retrieve the Address: public Address getAddressForLocation(Context context, Location location) throws IOException { if (location == null) { return null; } double latitude = loca...
stackexchange/codereview
I've created an autologin hook, and this works fine to log the user in. However I'm now trying to redirect the user to a specific page on my portal in case the autologin fails (to localhost:8080/web/security/registerConditions). However a response.sendRedirect to that URL seems to cause an infinite loop between the aut...
stackexchange/codereview
Basically, there is a requirement in my site that means that all cookies must be secured. I am trying to secure the FormsAuthentication cookie, however, I would like it so that on my local dev site I do not have to setup SSL, however the live sites will still secure the cookie. This live/dev status is stored in a confi...
stackexchange/codereview
I'm developing an Android application that has a list of items. What options do I have to make a background service to update that list from a webservice from time to time, asking first for the user permission? Can you provide code samples? Thanks in advance!
stackexchange/codereview
I'm just connecting to a db4o database file from 2 different connections with the LockDatabaseFile=false configuration value. When I store an object from an IObjectContainer, I'm unable to get that object from the other IObjectContainer at the same time. I commit the transaction after Store but still I'm unable to get ...
stackexchange/codereview
i hav a 3 values to be added always to the current index...
stackexchange/codereview
I have an abstract generic class: public abstract class SomeBaseClass<U,V> { } I want to create other generic class: public abstract class SomeOtherBaseClass<T1, T2> where T1 : SomeBaseClass<U,V> { private readonly T1 _someBaseClass; public SomeOtherBaseClass(T1 someBaseClass) { _someBaseClass = s...
stackexchange/codereview
ok i am trying to get a pool game going in c#/java. start = back of pool cue(x,y) end = front of pool cue(x,y) circles = list of balls (x,y,r) So every time you move your mouse I update start, end and then I loop through `circles check if it intersects. Then this is my problem I need to figure out what will happen wi...
stackexchange/codereview
I'm attempting to use the Excel 2007 XML Developers tools, but I'm not able to export a simple set of simple repeating data. I have a worksheet with headers, and columns of data. I have an xsd which describes (I think) a map of the data, with the first element repeating. <?xml version="1.0" encoding="utf-8"?> <xs:schem...
stackexchange/codereview
I am having a EditText in which I have to accept alphanumeric input from user which is specific to pattern, and hyphens '-' are inserted automatically. "XXX-XXX-XXXX" how to achieve that ? Is there any pattern tool in android ?
stackexchange/codereview
I'm trying to log in to some web site. I did it before with some other site but this site is more complicated. I used LIVE HTTP Headers to capture the post request. I noticed that the post request was done correctly but from some reason I'm not being transferred to the correct url. I went over the page source and I thi...
stackexchange/codereview
I'm quite beginner with revision control systems so pardon me. My project consists of two smaller applications, both in their own SVN repositories. In addition, I have one repository shared (svn:externals) between those applications. When a new version is released I would like to create a folder for that version (inclu...
stackexchange/codereview
In following code, I am taking input of an AJAX call into a function called plr(). I want to detect when loading is complete using the done variable. But main thread is locking the variable and the script hangs the browser. If I put the alert in the commented place, the purpose is served. So, what other way can I use t...
stackexchange/codereview
Have this basic hierarchy: // header class Base { virtual void method() { } virtual ~method() { } }; class Subclass : Base { virtual void method() { } virtual ~method() { } }; I wish to subclass Base with two explicit variations (without having to provide two implementations of Subclass if possible),...
stackexchange/codereview
I've taken up learning vb.net having come from a C# background. I was trying to reprogram a simple C# winforms program I had, which took command line parameters to determine what it did. In C#, there is always a main method to accept these arguments. From what I've read, vb.net implements a main method for you once you...
stackexchange/codereview
The twitter and facebook apps allow you to click on a username which in turn takes you to a new activity. How can this be achieved? I know there is Linkify, but it seems like it can only send you to a browser/phonecall/ etc. How can I make text that are like "@mynamehere" clickable so that it starts a new activity?
stackexchange/codereview
I have a mp3 track at a URL http://mysite.com/MP3/track1.mp3. Downloading it to a local path with NSURLConnection and NSDocumentDirectory. I would like to start playing this track as soon as possible and not after it is completely downloaded. Is there a while to accomplish this? I have tried setting a "X" size limit, a...
stackexchange/codereview
I'm using Ruby on Rails 2.3.8 and permalink-fu plugin. I would like to know how to generate permalinks like this: /posts/44444/this-is-the-title instead of /posts/44444-this-is-the-title I've tried modifying my Post model as follows: has_permalink :title, :update => true def to_param "#{permalink}" end And ...
stackexchange/codereview
I have a Profile -> Photo relationship on the "server" application. The client application would the ability to upload up to three photos to the server side. A side note: I am using Paperclip plugin on the serving app. I have done something like this successfully with a one-to-one relationship but never with a has_ma...
stackexchange/codereview
How can I order files in a directory by their true numeric order. file1.txt file2.txt file11.txt ... I think it's called : Natural Order
stackexchange/codereview
So in my program I have several different objects stored into an array. I randomly generate a number that is an index into the array and clone that object (nine times) to make a 3x3 grid of objects on my screen. Now my problem is after I have my 3x3 grid I want to be able to erase that and generate a new grid of objec...
stackexchange/codereview
As I am loading a UITableView it access numberOfSectionsInTableView: two times and crash the app with “EXC_BAD_ACCESS”. I have never experienced this before. Should numberOfSectionsInTableView: be accessed twice when doing the initial load of the tableview? - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableV...
stackexchange/codereview
There doesn't seem to be much documented on the flash API and how to alter it when using the camera so I'm hoping someone has already played around with this. Essentially I want to add camera functionality to my app but remove the double flash (I only need a quick single flash from the LED). Is this possible? Edit: I'v...
stackexchange/codereview